FlashGBX 4.2__py3-none-any.whl → 4.4__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/Flashcart.py CHANGED
@@ -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
@@ -708,6 +709,7 @@ class Flashcart_DMG_BUNG_16M(Flashcart):
708
709
  self.CartWrite([[0x2000, 0x02]], fast_write=False)
709
710
  self.CartWrite([[0x6AAA, 0x90]], fast_write=True)
710
711
  cart_flash_id = list(self.CartRead(0, 4))
712
+ verified = False
711
713
  if rom != cart_flash_id and cart_flash_id == self.CONFIG["flash_ids"][0]:
712
714
  self.Reset()
713
715
  verified = True
FlashGBX/GBMemory.py CHANGED
@@ -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):