Psmf: Fix save states.

This commit is contained in:
Unknown W. Brackets committed 2022-10-07 07:03:29 -07:00
1 parent 591a748ae2
commit 3af8a667e1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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());
+2 -2
View File
@@ -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);