Merge pull request #159 from rzumer/master

Add static GBC RAM banks to libretro memory map
This commit is contained in:
Lior Halphon 2019-04-12 17:37:18 +03:00 committed by GitHub
commit 19f42d5a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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]);