mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-23 16:00:06 +00:00
commit
c5058b90fe
@ -134,6 +134,7 @@ public:
|
||||
void *vram_ptr() const;
|
||||
void *rambank0_ptr() const;
|
||||
void *rambank1_ptr() const;
|
||||
void *bankedram_ptr() const;
|
||||
void *rombank0_ptr() const;
|
||||
void *rombank1_ptr() const;
|
||||
void *zeropage_ptr() const;
|
||||
|
@ -982,7 +982,7 @@ bool retro_load_game(const struct retro_game_info *info)
|
||||
struct retro_memory_descriptor descs[] =
|
||||
{
|
||||
{ mainram, gb.rambank0_ptr(), 0, 0xC000, 0, 0, 0x1000, NULL },
|
||||
{ mainram, gb.rambank1_ptr(), 0, 0xD000, 0, 0, gb.isCgb() ? 0x7000 : 0x1000, NULL },
|
||||
{ mainram, gb.bankedram_ptr(), 0, 0xD000, 0, 0, 0x1000, NULL },
|
||||
{ mainram, gb.zeropage_ptr(), 0, 0xFF80, 0, 0, 0x0080, NULL },
|
||||
{ 0, gb.savedata_ptr(), 0, 0xA000, (size_t)~0x1FFF, 0, sramlen, NULL },
|
||||
{ 0, gb.vram_ptr(), 0, 0x8000, 0, 0, 0x2000, NULL },
|
||||
|
@ -50,6 +50,7 @@ public:
|
||||
void *vram_ptr() const { return mem_.vram_ptr(); }
|
||||
void *rambank0_ptr() const { return mem_.rambank0_ptr(); }
|
||||
void *rambank1_ptr() const { return mem_.rambank1_ptr(); }
|
||||
void *bankedram_ptr() const { return mem_.bankedram_ptr(); }
|
||||
void *rombank0_ptr() const { return mem_.rombank0_ptr(); }
|
||||
void *rombank1_ptr() const { return mem_.rombank1_ptr(); }
|
||||
void *zeropage_ptr() const { return mem_.zeropage_ptr(); }
|
||||
|
@ -56,6 +56,7 @@ public:
|
||||
void *vram_ptr() const { return cart_.vramdata(); }
|
||||
void *rambank0_ptr() const { return cart_.wramdata(0); }
|
||||
void *rambank1_ptr() const { return cart_.wramdata(0) + 0x1000; }
|
||||
void *bankedram_ptr() const { return cart_.wramdata(1); }
|
||||
void *rombank0_ptr() const { return cart_.romdata(0); }
|
||||
void *rombank1_ptr() const { return cart_.romdata(0) + 0x4000; }
|
||||
void *zeropage_ptr() const { return (void*)(ioamhram_ + 0x0180); }
|
||||
|
@ -196,6 +196,10 @@ void *GB::rambank1_ptr() const {
|
||||
return p_->cpu.rambank1_ptr();
|
||||
}
|
||||
|
||||
void *GB::bankedram_ptr() const {
|
||||
return p_->cpu.bankedram_ptr();
|
||||
}
|
||||
|
||||
void *GB::rombank0_ptr() const {
|
||||
return p_->cpu.rombank0_ptr();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user