diff --git a/Randomizer.py b/Randomizer.py index b4e3d58..7bc70fd 100644 --- a/Randomizer.py +++ b/Randomizer.py @@ -4674,13 +4674,13 @@ def patch_game(): apply_to_files(patch, source, target) except: target.close() - os.unlink(os.path.join('.', 'seeds', '{}.gba'.format(FileName)) + os.unlink(os.path.join('.', 'seeds', '{}.gba'.format(FileName))) print('Error: failed to patch game with base patch!') sys.exit(1) checksum = fileHash(os.path.join('.', 'seeds', '{}.gba'.format(FileName))) if checksum != 2455114263: - os.remove(os.path.join('.', 'seeds', '{}.gba'.format(FileName))) + os.unlink(os.path.join('.', 'seeds', '{}.gba'.format(FileName))) print('Error: Base patch file has been modified. Please go to https://metroidconstruction.com/ and re-download MFOR.') sys.exit(1) # WARNING: Decompyle incomplete