Implement a missing time function

This commit is contained in:
Henrik Rydgard 2012-11-20 01:04:39 +01:00
parent 45d42f09a1
commit f226afc3ca
3 changed files with 8 additions and 1 deletions

View File

@ -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"},

View File

@ -99,6 +99,12 @@ void sceKernelSysClock2USecWide()
RETURN(0);
}
void sceKernelUSec2SysClockWide()
{
int usec = PARAM(0);
RETURN(usec * 1000000); // ?
}
void sceKernelLibcClock()
{
u32 retVal = clock()*1000;

View File

@ -26,6 +26,7 @@ void sceKernelGetSystemTimeLow();
void sceKernelGetSystemTimeWide();
void sceKernelSysClock2USec();
void sceKernelSysClock2USecWide();
void sceKernelUSec2SysClockWide();
void sceRtcGetCurrentClockLocalTime();
void sceRtcGetTickResolution();
void sceRtcGetTick();