Hello,
I was wondering if it was possible; It Should be...
I looked into sceRTC* but I've seen nothing that would be useful :|
How can we achieve that?
Changing System Time Globally? Any SCE function Exports?
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
Changing System Time Globally? Any SCE function Exports?
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Use it more for Development than for Gaming.
sceRtcSetCurrentTick. Note however that it is a kernel export only.
Code: Select all
void SetDate(pspTime *time)
{
u64 tick, tick2;
sceRtcGetTick(time, &tick);
sceRtcConvertLocalTimeToUTC(&tick, &tick2);
sceRtcSetCurrentTick(&tick2);
}
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
Thanks! This wasn't even in the latest PSPSDK.moonlight wrote:sceRtcSetCurrentTick. Note however that it is a kernel export only.
Code: Select all
void SetDate(pspTime *time) { u64 tick, tick2; sceRtcGetTick(time, &tick); sceRtcConvertLocalTimeToUTC(&tick, &tick2); sceRtcSetCurrentTick(&tick2); }
[The closest I found before asking was sceRtcSetTick,]
It converts Hours, minutes and seconds and converts it into ticks based on a local pspTime struct.
This also changes time in XMB and home Right? [I hope it does...]
Last edited by KickinAezz on Tue Aug 05, 2008 12:50 am, edited 1 time in total.
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Use it more for Development than for Gaming.