FlashGBX 4.3__py3-none-any.whl → 4.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- FlashGBX/DataTransfer.py +1 -1
- FlashGBX/FlashGBX.py +4 -3
- FlashGBX/FlashGBX_CLI.py +36 -20
- FlashGBX/FlashGBX_GUI.py +359 -148
- FlashGBX/Flashcart.py +3 -2
- FlashGBX/GBMemory.py +4 -2
- FlashGBX/LK_Device.py +327 -233
- FlashGBX/Mapper.py +6 -27
- FlashGBX/PocketCamera.py +1 -1
- FlashGBX/PocketCameraWindow.py +32 -2
- FlashGBX/RomFileAGB.py +5 -2
- FlashGBX/RomFileDMG.py +8 -3
- FlashGBX/UserInputDialog.py +1 -1
- FlashGBX/Util.py +33 -11
- FlashGBX/__main__.py +1 -1
- FlashGBX/fw_GBFlash.py +20 -3
- FlashGBX/fw_GBxCartRW_v1_3.py +1 -1
- FlashGBX/fw_GBxCartRW_v1_4.py +1 -1
- FlashGBX/fw_JoeyJr.py +10 -3
- FlashGBX/hw_GBFlash.py +3 -3
- FlashGBX/hw_GBxCartRW.py +16 -16
- FlashGBX/hw_JoeyJr.py +3 -3
- FlashGBX/pyside.py +1 -1
- FlashGBX/res/config.zip +0 -0
- FlashGBX/res/fw_GBFlash.zip +0 -0
- FlashGBX/res/fw_GBxCart_RW_v1_4.zip +0 -0
- FlashGBX/res/fw_GBxCart_RW_v1_4a.zip +0 -0
- FlashGBX/res/fw_JoeyJr.zip +0 -0
- {FlashGBX-4.3.dist-info → flashgbx-4.6.dist-info}/METADATA +103 -57
- flashgbx-4.6.dist-info/RECORD +43 -0
- {FlashGBX-4.3.dist-info → flashgbx-4.6.dist-info}/WHEEL +1 -1
- FlashGBX-4.3.dist-info/RECORD +0 -43
- {FlashGBX-4.3.dist-info → flashgbx-4.6.dist-info}/entry_points.txt +0 -0
- {FlashGBX-4.3.dist-info → flashgbx-4.6.dist-info/licenses}/LICENSE +0 -0
- {FlashGBX-4.3.dist-info → flashgbx-4.6.dist-info}/top_level.txt +0 -0
FlashGBX/Flashcart.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# FlashGBX
|
|
3
|
-
# Author: Lesserkuma (github.com/
|
|
3
|
+
# Author: Lesserkuma (github.com/Lesserkuma)
|
|
4
4
|
|
|
5
5
|
import time, copy, math, struct
|
|
6
6
|
from .Util import dprint, bitswap
|
|
@@ -284,10 +284,11 @@ class Flashcart:
|
|
|
284
284
|
pos += size
|
|
285
285
|
else:
|
|
286
286
|
while pos < rom_size:
|
|
287
|
+
dprint("Adding extra sector:", pos, regions)
|
|
287
288
|
offsets.append([ pos, regions ])
|
|
288
289
|
pos += regions
|
|
289
290
|
return offsets
|
|
290
|
-
|
|
291
|
+
|
|
291
292
|
def GetSectorMap(self):
|
|
292
293
|
if self.SECTOR_MAP is not None:
|
|
293
294
|
return self.SECTOR_MAP
|
FlashGBX/GBMemory.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# FlashGBX
|
|
3
|
-
# Author: Lesserkuma (github.com/
|
|
3
|
+
# Author: Lesserkuma (github.com/Lesserkuma)
|
|
4
4
|
|
|
5
5
|
import datetime, struct, copy, zlib, hashlib
|
|
6
6
|
from . import Util
|
|
@@ -299,7 +299,9 @@ class GBMemoryMap:
|
|
|
299
299
|
elif mbc in (0x19, 0x1A, 0x1B, 0x1C, 0x1E, 0x105): # MBC5
|
|
300
300
|
mbc_type = 5
|
|
301
301
|
else:
|
|
302
|
-
mbc_type = False
|
|
302
|
+
#mbc_type = False
|
|
303
|
+
print("NOTE: The ROM is using a mapper type that may be incompatible with GB-Memory Cartridges. (0x{:02X})".format(mbc))
|
|
304
|
+
mbc_type = 5
|
|
303
305
|
return mbc_type
|
|
304
306
|
|
|
305
307
|
def GetBlockSizeBackup(self, b_size=None):
|