Core: Fix importing save games as read-only
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Sep 2016 13:39:52 -0700
3 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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.c
→
src/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; }