diff --git a/FlashGBX/Util.py b/FlashGBX/Util.py index f08d571..7d4b4a3 100644 --- a/FlashGBX/Util.py +++ b/FlashGBX/Util.py @@ -9,7 +9,7 @@ APPNAME = "FlashGBX" VERSION_PEP440 = "3.29" VERSION = "v{:s}".format(VERSION_PEP440) -VERSION_TIMESTAMP = 1684066518 +VERSION_TIMESTAMP = 1684078059 DEBUG = False DEBUG_LOG = [] APP_PATH = "" diff --git a/FlashGBX/hw_GBxCartRW.py b/FlashGBX/hw_GBxCartRW.py index 862f2e1..8dc5930 100644 --- a/FlashGBX/hw_GBxCartRW.py +++ b/FlashGBX/hw_GBxCartRW.py @@ -1105,7 +1105,8 @@ def ReadROM(self, address, length, skip_init=False, max_length=64): temp = self._read(length) if isinstance(temp, int): temp = bytearray([temp]) if temp is False or len(temp) != length: - print("{:s}Error while trying to read 0x{:X} bytes from cartridge ROM at 0x{:X} in iteration {:d} of {:d}:{:s}\n{:s}".format(ANSI.RED, length, address, n, num, ANSI.RESET, str(temp))) + if Util.DEBUG: + print("{:s}Error while trying to read 0x{:X} bytes from cartridge ROM at 0x{:X} in iteration {:d} of {:d}:{:s}\n{:s}".format(ANSI.RED, length, address, n, num, ANSI.RESET, str(temp))) return bytearray() buffer += temp if self.INFO["action"] in (self.ACTIONS["ROM_READ"], self.ACTIONS["SAVE_READ"], self.ACTIONS["ROM_WRITE_VERIFY"]) and not self.NO_PROG_UPDATE: