mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
Add sceRtcGetTime64_t
and define sceNetAdhocPollSocket
This commit is contained in:
parent
6686849d35
commit
b21a89e56e
@ -93,6 +93,7 @@ const HLEFunction sceNetAdhoc[] =
|
||||
{0x0b2228e9, 0, "sceNetAdhocGameModeDeleteReplica"},
|
||||
{0x7F75C338, 0, "sceNetAdhocGameModeCreateMaster"},
|
||||
{0x73bfd52d, 0, "sceNetAdhocSetSocketAlert"},
|
||||
{0x7a662d6b, 0, "sceNetAdhocPollSocket"}
|
||||
};
|
||||
|
||||
const HLEFunction sceNetAdhocMatching[] =
|
||||
|
@ -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"},
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user