all repos — mgba @ 79274de539137fa9fa249c38bf617aecc31fbe98

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

79274de539137fa9fa249c38bf617aecc31fbe98

parent

19d2f68a283d299ec56f6c3ea895d6d6c105c654

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; }