This commit is contained in:
Lesserkuma
2023-05-14 17:29:28 +02:00
parent 97d4a3a00b
commit de9721b419
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ from enum import Enum
APPNAME = "FlashGBX"
VERSION_PEP440 = "3.29"
VERSION = "v{:s}".format(VERSION_PEP440)
VERSION_TIMESTAMP = 1684066518
VERSION_TIMESTAMP = 1684078059
DEBUG = False
DEBUG_LOG = []
APP_PATH = ""

View File

@@ -1105,7 +1105,8 @@ class GbxDevice:
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: