mirror of https://github.com/bsnes-emu/bsnes.git
Merge pull request #159 from rzumer/master
Add static GBC RAM banks to libretro memory map
This commit is contained in:
commit
19f42d5a3a
|
@ -393,7 +393,7 @@ static void init_for_current_model(unsigned id)
|
|||
set_link_cable_state(true);
|
||||
}
|
||||
|
||||
struct retro_memory_descriptor descs[9];
|
||||
struct retro_memory_descriptor descs[10];
|
||||
size_t size;
|
||||
uint16_t bank;
|
||||
|
||||
|
@ -440,6 +440,10 @@ static void init_for_current_model(unsigned id)
|
|||
descs[8].start = 0xFE00;
|
||||
descs[8].len = 0x00A0;
|
||||
|
||||
descs[9].ptr = descs[2].ptr + 0x1000;
|
||||
descs[9].start = 0x10000;
|
||||
descs[9].len = GB_is_cgb(&gameboy[i]) ? 0x7000 : 0;
|
||||
|
||||
struct retro_memory_map mmaps;
|
||||
mmaps.descriptors = descs;
|
||||
mmaps.num_descriptors = sizeof(descs) / sizeof(descs[0]);
|
||||
|
|
Loading…
Reference in New Issue