Core: Fix importing save games as read-only

This commit is contained in:
Jeffrey Pfau 2016-09-25 13:39:52 -07:00
parent 19d2f68a28
commit 79274de539
3 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ Bugfixes:
- 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

View File

@ -497,7 +497,7 @@ static size_t _GBCoreSavedataClone(struct mCore* core, void** sram) {
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;
}

View File

@ -516,7 +516,7 @@ static size_t _GBACoreSavedataClone(struct mCore* core, void** sram) {
}
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;
}