mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
sceRtcGetTime_t is also 32bit
and is seconds from 1970
This commit is contained in:
parent
6c91fc53f2
commit
b8f125bf7d
1 changed files with 3 additions and 2 deletions
|
@ -443,8 +443,9 @@ int sceRtcGetTime_t(u32 datePtr, u32 timePtr)
|
|||
{
|
||||
ScePspDateTime pt;
|
||||
Memory::ReadStruct(datePtr, &pt);
|
||||
u64 result = __RtcPspTimeToTicks(pt);
|
||||
Memory::Write_U64(result, timePtr);
|
||||
pt.year-=1969;
|
||||
u64 result = __RtcPspTimeToTicks(pt)/1000000ULL;
|
||||
Memory::Write_U32(result, timePtr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue