mirror of
https://github.com/lesserkuma/FlashGBX.git
synced 2026-08-28 19:54:11 -05:00
3.29
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user