all repos — mgba @ 50f51f4b38dff5e96b4e539d4f65ed0f1ec7b726

mGBA Game Boy Advance Emulator

Libretro: Fix build
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Sep 2016 18:45:23 -0700
commit

50f51f4b38dff5e96b4e539d4f65ed0f1ec7b726

parent

00e7a5b2854b106e4b867cc40c4b539e624ea49b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -289,7 +289,7 @@ }

struct retro_memory_descriptor descs[11]; struct retro_memory_map mmaps; - size_t romSize = game->size + (game->size & 1); + size_t romSize = gba->memory.romSize + (gba->memory.romSize & 1); memset(descs, 0, sizeof(descs)); size_t savedataSize = retro_get_memory_size(RETRO_MEMORY_SAVE_RAM);