mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 20:24:01 +01:00
Psmf: Fix save states.
This commit is contained in:
1 parent
591a748ae2
commit
3af8a667e1
2 files changed
+3
-3
No files matched your search
@@ -1144,7 +1144,7 @@ static int gzipDecompress(u8 *OutBuffer, int OutBufferLength, u8 *InBuffer) {
|
||||
}
|
||||
|
||||
static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 loadAddress, bool fromTop, std::string *error_string, u32 *magic, u32 &error) {
|
||||
u32 crc = crc32(0, ptr, elfSize);
|
||||
u32 crc = crc32(0, ptr, (uInt)elfSize);
|
||||
PSPModule *module = new PSPModule();
|
||||
kernelObjects.Create(module);
|
||||
loadedModules.insert(module->GetUID());
|
||||
|
||||
@@ -711,7 +711,7 @@ void __PsmfDoState(PointerWrap &p) {
|
||||
}
|
||||
|
||||
void __PsmfPlayerDoState(PointerWrap &p) {
|
||||
auto s = p.Section("scePsmfPlayer", 1, 3);
|
||||
auto s = p.Section("scePsmfPlayer", 1, 4);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
@@ -724,7 +724,7 @@ void __PsmfPlayerDoState(PointerWrap &p) {
|
||||
Do(p, eventPsmfPlayerStatusChange);
|
||||
}
|
||||
CoreTiming::RestoreRegisterEvent(eventPsmfPlayerStatusChange, "PsmfPlayerStatusChangeEvent", &__PsmfPlayerStatusChange);
|
||||
if (s < 3) {
|
||||
if (s < 4) {
|
||||
psmfPlayerLibcrc = 0;
|
||||
} else {
|
||||
Do(p, psmfPlayerLibcrc);
|
||||
|
||||
Reference in new issue
Block a user