mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix cross-platform compat problem with savestates.
This commit is contained in:
parent
82395001ec
commit
610b7f6e4c
1 changed files with 8 additions and 2 deletions
|
@ -41,11 +41,17 @@ void __KernelTimeInit()
|
|||
|
||||
void __KernelTimeDoState(PointerWrap &p)
|
||||
{
|
||||
auto s = p.Section("sceKernelTime", 1);
|
||||
auto s = p.Section("sceKernelTime", 1, 2);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
p.Do(start_time);
|
||||
if (s < 2) {
|
||||
p.Do(start_time);
|
||||
} else {
|
||||
u64 t = start_time;
|
||||
p.Do(t);
|
||||
start_time = (time_t)t;
|
||||
}
|
||||
}
|
||||
|
||||
int sceKernelGetSystemTime(u32 sysclockPtr)
|
||||
|
|
Loading…
Add table
Reference in a new issue