diff --git a/Randomizer.py b/Randomizer.py index c2288b1..9bddd3c 100644 --- a/Randomizer.py +++ b/Randomizer.py @@ -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: