Implement a missing time function
This commit is contained in:
parent
45d42f09a1
commit
f226afc3ca
3 changed files with 8 additions and 1 deletions
|
@ -412,7 +412,7 @@ const HLEFunction ThreadManForUser[] =
|
|||
|
||||
{0xba6b92e2,sceKernelSysClock2USec,"sceKernelSysClock2USec"},
|
||||
{0x110DEC9A,0,"sceKernelUSec2SysClock"},
|
||||
{0xC8CD158C,0,"sceKernelUSec2SysClockWide"},
|
||||
{0xC8CD158C,sceKernelUSec2SysClockWide,"sceKernelUSec2SysClockWide"},
|
||||
{0xE1619D7C,sceKernelSysClock2USecWide,"sceKernelSysClock2USecWide"},
|
||||
|
||||
{0x110dec9a,sceKernelUSec2SysClock,"sceKernelUSec2SysClock"},
|
||||
|
|
|
@ -99,6 +99,12 @@ void sceKernelSysClock2USecWide()
|
|||
RETURN(0);
|
||||
}
|
||||
|
||||
void sceKernelUSec2SysClockWide()
|
||||
{
|
||||
int usec = PARAM(0);
|
||||
RETURN(usec * 1000000); // ?
|
||||
}
|
||||
|
||||
void sceKernelLibcClock()
|
||||
{
|
||||
u32 retVal = clock()*1000;
|
||||
|
|
|
@ -26,6 +26,7 @@ void sceKernelGetSystemTimeLow();
|
|||
void sceKernelGetSystemTimeWide();
|
||||
void sceKernelSysClock2USec();
|
||||
void sceKernelSysClock2USecWide();
|
||||
void sceKernelUSec2SysClockWide();
|
||||
void sceRtcGetCurrentClockLocalTime();
|
||||
void sceRtcGetTickResolution();
|
||||
void sceRtcGetTick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue