mirror of https://github.com/mgba-emu/mgba.git
Python: Fix some missing constants (fixes #3402)
This commit is contained in:
parent
7fe4f4593e
commit
2dd11712db
|
@ -54,7 +54,7 @@ class GBA(Core):
|
||||||
|
|
||||||
|
|
||||||
class GBAMemory(Memory):
|
class GBAMemory(Memory):
|
||||||
def __init__(self, core, romSize=lib.SIZE_CART0):
|
def __init__(self, core, romSize=lib.GBA_SIZE_ROM0):
|
||||||
super(GBAMemory, self).__init__(core, 0x100000000)
|
super(GBAMemory, self).__init__(core, 0x100000000)
|
||||||
|
|
||||||
self.bios = Memory(core, lib.GBA_SIZE_BIOS, lib.GBA_BASE_BIOS)
|
self.bios = Memory(core, lib.GBA_SIZE_BIOS, lib.GBA_BASE_BIOS)
|
||||||
|
@ -64,11 +64,10 @@ class GBAMemory(Memory):
|
||||||
self.palette = Memory(core, lib.GBA_SIZE_PALETTE_RAM, lib.GBA_BASE_PALETTE_RAM)
|
self.palette = Memory(core, lib.GBA_SIZE_PALETTE_RAM, lib.GBA_BASE_PALETTE_RAM)
|
||||||
self.vram = Memory(core, lib.GBA_SIZE_VRAM, lib.GBA_BASE_VRAM)
|
self.vram = Memory(core, lib.GBA_SIZE_VRAM, lib.GBA_BASE_VRAM)
|
||||||
self.oam = Memory(core, lib.GBA_SIZE_OAM, lib.GBA_BASE_OAM)
|
self.oam = Memory(core, lib.GBA_SIZE_OAM, lib.GBA_BASE_OAM)
|
||||||
self.cart0 = Memory(core, romSize, lib.BASE_CART0)
|
self.rom0 = Memory(core, romSize, lib.GBA_BASE_ROM0)
|
||||||
self.cart1 = Memory(core, romSize, lib.BASE_CART1)
|
self.rom1 = Memory(core, romSize, lib.GBA_BASE_ROM1)
|
||||||
self.cart2 = Memory(core, romSize, lib.BASE_CART2)
|
self.rom2 = Memory(core, romSize, lib.GBA_BASE_ROM2)
|
||||||
self.cart = self.cart0
|
self.rom = self.rom0
|
||||||
self.rom = self.cart0
|
|
||||||
self.sram = Memory(core, lib.GBA_SIZE_SRAM, lib.GBA_BASE_SRAM)
|
self.sram = Memory(core, lib.GBA_SIZE_SRAM, lib.GBA_BASE_SRAM)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue