Add sceRtcGetTime64_t

and define sceNetAdhocPollSocket
This commit is contained in:
TMaul 2012-12-12 21:15:11 +00:00
parent 6686849d35
commit b21a89e56e
2 changed files with 23 additions and 0 deletions

View File

@ -93,6 +93,7 @@ const HLEFunction sceNetAdhoc[] =
{0x0b2228e9, 0, "sceNetAdhocGameModeDeleteReplica"},
{0x7F75C338, 0, "sceNetAdhocGameModeCreateMaster"},
{0x73bfd52d, 0, "sceNetAdhocSetSocketAlert"},
{0x7a662d6b, 0, "sceNetAdhocPollSocket"}
};
const HLEFunction sceNetAdhocMatching[] =

View File

@ -454,6 +454,27 @@ int sceRtcGetTime_t(u32 datePtr, u32 timePtr)
return 0;
}
int sceRtcGetTime64_t(u32 datePtr, u32 timePtr)
{
ERROR_LOG(HLE, "HACK sceRtcGetTime64_t(%d,%d)", datePtr, time);
if (Memory::IsValidAddress(datePtr)&&Memory::IsValidAddress(timePtr))
{
ScePspDateTime pt;
Memory::ReadStruct(datePtr, &pt);
pt.year-=1969;
u64 result = __RtcPspTimeToTicks(pt)/1000000ULL;
Memory::Write_U64(result, timePtr);
}
else
{
return 1;
}
return 0;
}
int sceRtcSetDosTime(u32 datePtr, u32 dosTime)
{
ERROR_LOG(HLE, "HACK sceRtcSetDosTime(%d,%d)", datePtr, dosTime);
@ -741,6 +762,7 @@ const HLEFunction sceRtc[] =
{0x27F98543, 0, "sceRtcFormatRFC3339LocalTime"},
{0xDFBC5F16, WrapI_UU<sceRtcParseDateTime>, "sceRtcParseDateTime"},
{0x28E1E988, 0, "sceRtcParseRFC3339"},
{0xe1c93e47,0, "sceRtcGetTime64_t"},
};