mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Create basepatch in proper directory if required.
This commit is contained in:
3
Rom.py
3
Rom.py
@@ -105,8 +105,7 @@ class LocalRom(object):
|
||||
if self.verify(self.buffer):
|
||||
with open(local_path('basepatch.sfc'), 'wb') as stream:
|
||||
stream.write(self.buffer)
|
||||
create_patch_file(local_path('basepatch.sfc'))
|
||||
os.rename(local_path('basepatch.bmbp'), os.path.join('data', 'basepatch.bmbp'))
|
||||
create_patch_file(local_path('basepatch.sfc'), destination=local_path(os.path.join('data', 'basepatch.bmbp')))
|
||||
os.remove(local_path('data/base2current.json'))
|
||||
else:
|
||||
raise RuntimeError(
|
||||
|
Reference in New Issue
Block a user