mirror of https://github.com/mgba-emu/mgba.git
Core: Fix importing save games as read-only
This commit is contained in:
parent
19d2f68a28
commit
79274de539
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue