sceRtcGetTime_t is also 32bit

and is seconds from 1970
This commit is contained in:
TMaul 2012-12-08 21:01:37 +00:00
parent 6c91fc53f2
commit b8f125bf7d

View file

@ -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
{