no longer try patching if it's the wrong rom.

People ignore the warning.
This commit is contained in:
Fabian Dill
2020-03-08 02:18:55 +01:00
parent f583db3ee9
commit 611f4d3fb2
3 changed files with 6 additions and 4 deletions

View File

@@ -22,8 +22,8 @@ def get_base_rom_bytes() -> bytes:
basemd5 = hashlib.md5()
basemd5.update(base_rom_bytes)
if JAP10HASH != basemd5.hexdigest():
logging.warning('Supplied Base Rom does not match known MD5 for JAP(1.0) release.'
' Will try to patch anyway.')
raise Exception('Supplied Base Rom does not match known MD5 for JAP(1.0) release. '
'Get the correct game and version, then dump it')
return base_rom_bytes