fix BaseName undefined error
parent
4622f61057
commit
1f2cba725d
|
@ -2579,7 +2579,7 @@ def randomize_game(graph):
|
|||
patch_game()
|
||||
|
||||
def patch_game():
|
||||
global FileName, BaseName
|
||||
global FileName, BaseGame
|
||||
CreditsOffsets = {
|
||||
'ChargeBeam': 7655617,
|
||||
'WideBeam': 7655725,
|
||||
|
@ -2616,7 +2616,7 @@ def patch_game():
|
|||
os.system('.\\armips\\armips.exe "Metroid Fusion Open Randomizer.asm" -root ".\\data\\asm" -sym ".\\temp.sym"')
|
||||
os.replace('.\\data\\MFOR.gba', '.\\seeds\\{}.gba'.format(FileName))
|
||||
else:
|
||||
source = open(BaseName, 'rb')
|
||||
source = open(BaseGame, 'rb')
|
||||
target = open(os.path.join('.', 'seeds', '{}.gba'.format(FileName)), 'wb')
|
||||
patch = open(os.path.join('.', 'data', 'MFOR.bps'), 'rb')
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue