From 9dd481861e74c7b328a39853c919a619c292aa60 Mon Sep 17 00:00:00 2001 From: fig02 Date: Sun, 5 Apr 2020 15:18:43 -0400 Subject: [PATCH] fix make setup --- fixbaserom.py | 4 ++-- makefile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fixbaserom.py b/fixbaserom.py index 3cc67be0a8..df84332bae 100644 --- a/fixbaserom.py +++ b/fixbaserom.py @@ -48,10 +48,10 @@ print("Patching header...") strippedContent[0x3E] = 0x50 # Check to see if the ROM is a "vanilla" Debug ROM -md5Hash = hashlib.md5(bytearray(strippedContent)).hexdigest() +md5Hash = hashlib.md5(bytes(strippedContent)).hexdigest() if (str(md5Hash) != "f0b7f35375f9cc8ca1b2d59d78e35405"): - print("Error: Expected a hash of f0b7f35375f9cc8ca1b2d59d78e35405 but got " + str(md5Hash) + ". The baserom is probably not \"vanilla\"") + print("Error: Expected a hash of f0b7f35375f9cc8ca1b2d59d78e35405 but got " + str(md5Hash) + ". The baserom has probably been tampered, find a new one") sys.exit(1) # Write out our new ROM diff --git a/makefile b/makefile index 2272230b53..9b663e20b8 100644 --- a/makefile +++ b/makefile @@ -130,6 +130,7 @@ clean: $(RM) $(ROM) $(ELF) -r build setup: + git submodule update --init --recursive make -C tools python3 fixbaserom.py python3 extract_baserom.py