| View previous topic :: View next topic |
| Author |
Message |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Mon Aug 04, 2008 11:08 pm Post subject: Changing System Time Globally? Any SCE function Exports? |
|
|
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? _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Tue Aug 05, 2008 12:44 am Post subject: |
|
|
sceRtcSetCurrentTick. Note however that it is a kernel export only.
| Code: | void SetDate(pspTime *time)
{
u64 tick, tick2;
sceRtcGetTick(time, &tick);
sceRtcConvertLocalTimeToUTC(&tick, &tick2);
sceRtcSetCurrentTick(&tick2);
}
|
|
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Tue Aug 05, 2008 12:48 am Post subject: |
|
|
| moonlight wrote: | sceRtcSetCurrentTick. Note however that it is a kernel export only.
| Code: | void SetDate(pspTime *time)
{
u64 tick, tick2;
sceRtcGetTick(time, &tick);
sceRtcConvertLocalTimeToUTC(&tick, &tick2);
sceRtcSetCurrentTick(&tick2);
}
|
|
Thanks! This wasn't even in the latest PSPSDK.
[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...] _________________ Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Last edited by KickinAezz on Tue Aug 05, 2008 12:50 am; edited 1 time in total |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Tue Aug 05, 2008 12:50 am Post subject: |
|
|
Yeah, the function is not in includes, but it is in the libpsprtc_driver library anyways.
P.S.: yeah this changes the date totally. I used that when i changed the date in 3.51 M33 installer :) |
|
| Back to top |
|
 |
|