mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-11 18:33:41 +00:00
Merge pull request #8990 from unknownbrackets/reporting
Module: Don't report broken stubs from old states
This commit is contained in:
commit
bcadd60eac
@ -301,8 +301,17 @@ public:
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Older save state. Let's still reload, but this may not pick up new flags, etc.
|
// Older save state. Let's still reload, but this may not pick up new flags, etc.
|
||||||
|
bool foundBroken = false;
|
||||||
for (auto func : importedFuncs) {
|
for (auto func : importedFuncs) {
|
||||||
ImportFunc(func, true);
|
if (func.moduleName[KERNELOBJECT_MAX_NAME_LENGTH] != '\0' || !Memory::IsValidAddress(func.stubAddr)) {
|
||||||
|
foundBroken = true;
|
||||||
|
} else {
|
||||||
|
ImportFunc(func, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (foundBroken) {
|
||||||
|
ERROR_LOG(LOADER, "Broken stub import data while loading state");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user