mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 15:30:29 +02:00
SaveState: Initialize some memory that is saved.
At the very least, will help them compress better. Also good not to leak random memory.
This commit is contained in:
1 parent
3090360692
commit
fd8a0612fa
8 files changed
+27
-16
No files matched your search
@@ -544,7 +544,7 @@ public:
|
||||
p.Do(currentMipscallId);
|
||||
p.Do(currentCallbackId);
|
||||
|
||||
// TODO: How do I "version" adding a DoState method to ThreadContext?
|
||||
// TODO: If we want to "version" a DoState method here, we can just use minVer = 0.
|
||||
p.Do(context);
|
||||
|
||||
if (s <= 3)
|
||||
@@ -1824,6 +1824,8 @@ void ThreadContext::reset()
|
||||
fcr31 = 0x00000e00;
|
||||
hi = 0xDEADBEEF;
|
||||
lo = 0xDEADBEEF;
|
||||
// Just for a clean state.
|
||||
other[5] = 0;
|
||||
}
|
||||
|
||||
void __KernelResetThread(Thread *t, int lowestPriority)
|
||||
|
||||
Reference in new issue
Block a user