all repos — mgba @ ad6f84ba312337f9148a90500b74001337f141a3

mGBA Game Boy Advance Emulator

Core: Fix importing save games as read-only
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Sep 2016 13:39:52 -0700
commit

ad6f84ba312337f9148a90500b74001337f141a3

parent

9a012af9279ecd341cfed6266ff48dd6b909de10

3 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -13,6 +13,7 @@ - GBA Cheats: Fix key-activated CodeBreaker cheats

- GB SIO: Don't auto-clock external shift clock - Qt: Fix directory set unloading when replacing the ROM - GBA Savedata: Fix loading savestates with 512Mb Flash saves + - Core: Fix importing save games as read-only Misc: - All: Only update version info if needed - FFmpeg: Encoding cleanup
M src/gb/core.csrc/gb/core.c

@@ -497,7 +497,7 @@

static bool _GBCoreSavedataRestore(struct mCore* core, const void* sram, size_t size, bool writeback) { struct GB* gb = core->board; if (!writeback) { - struct VFile* vf = VFileFromConstMemory(sram, size); + struct VFile* vf = VFileMemChunk(sram, size); GBSavedataMask(gb, vf, true); return true; }
M src/gba/core.csrc/gba/core.c

@@ -516,7 +516,7 @@ return size;

} static bool _GBACoreSavedataRestore(struct mCore* core, const void* sram, size_t size, bool writeback) { - struct VFile* vf = VFileFromConstMemory(sram, size); + struct VFile* vf = VFileMemChunk(sram, size); if (!vf) { return false; }