mirror of https://github.com/mgba-emu/mgba.git
Core: Warn when savedata fails to load from state
This commit is contained in:
parent
2f29082401
commit
3f818f0735
|
@ -450,7 +450,9 @@ bool mCoreLoadStateNamed(struct mCore* core, struct VFile* vf, int flags) {
|
|||
if (mStateExtdataGet(&extdata, EXTDATA_SAVEDATA, &item)) {
|
||||
mLOG(SAVESTATE, INFO, "Loading savedata");
|
||||
if (item.data) {
|
||||
core->savedataRestore(core, item.data, item.size, flags & SAVESTATE_SAVEDATA);
|
||||
if (!core->savedataRestore(core, item.data, item.size, flags & SAVESTATE_SAVEDATA)) {
|
||||
mLOG(SAVESTATE, WARN, "Failed to load savedata from savestate");
|
||||
}
|
||||
}
|
||||
}
|
||||
struct mCheatDevice* device;
|
||||
|
|
Loading…
Reference in New Issue