Skip to content

Commit

Permalink
3.29
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserkuma committed May 14, 2023
1 parent 97d4a3a commit de9721b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FlashGBX/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
3 changes: 2 additions & 1 deletion FlashGBX/hw_GBxCartRW.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit de9721b

Please sign in to comment.