#include "stdafx.h" #include "Emu/System.h" #include "Emu/PSP2/ARMv7Module.h" #include "sceRtc.h" logs::channel sceRtc("sceRtc"); u32 sceRtcGetTickResolution() { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetCurrentTick(vm::ptr pTick) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetCurrentClock(vm::ptr pTime, s32 iTimeZone) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetCurrentClockLocalTime(vm::ptr pTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetCurrentNetworkTick(vm::ptr pTick) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcConvertUtcToLocalTime(vm::cptr pUtc, vm::ptr pLocalTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcConvertLocalTimeToUtc(vm::cptr pLocalTime, vm::ptr pUtc) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcIsLeapYear(s32 year) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetDaysInMonth(s32 year, s32 month) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetDayOfWeek(s32 year, s32 month, s32 day) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcCheckValid(vm::cptr pTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcSetTime_t(vm::ptr pTime, u32 iTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcSetTime64_t(vm::ptr pTime, u64 ullTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetTime_t(vm::cptr pTime, vm::ptr piTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetTime64_t(vm::cptr pTime, vm::ptr pullTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcSetDosTime(vm::ptr pTime, u32 uiDosTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetDosTime(vm::cptr pTime, vm::ptr puiDosTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcSetWin32FileTime(vm::ptr pTime, u64 ulWin32Time) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetWin32FileTime(vm::cptr pTime, vm::ptr ulWin32Time) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcSetTick(vm::ptr pTime, vm::cptr pTick) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcGetTick(vm::cptr pTime, vm::ptr pTick) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcCompareTick(vm::cptr pTick1, vm::cptr pTick2) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddTicks(vm::ptr pTick0, vm::cptr pTick1, u64 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddMicroseconds(vm::ptr pTick0, vm::cptr pTick1, u64 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddSeconds(vm::ptr pTick0, vm::cptr pTick1, u64 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddMinutes(vm::ptr pTick0, vm::cptr pTick1, u64 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddHours(vm::ptr pTick0, vm::cptr pTick1, s32 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddDays(vm::ptr pTick0, vm::cptr pTick1, s32 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddWeeks(vm::ptr pTick0, vm::cptr pTick1, s32 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddMonths(vm::ptr pTick0, vm::cptr pTick1, s32 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcTickAddYears(vm::ptr pTick0, vm::cptr pTick1, s32 lAdd) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcFormatRFC2822(vm::ptr pszDateTime, vm::cptr pUtc, s32 iTimeZoneMinutes) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcFormatRFC2822LocalTime(vm::ptr pszDateTime, vm::cptr pUtc) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcFormatRFC3339(vm::ptr pszDateTime, vm::cptr pUtc, s32 iTimeZoneMinutes) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcFormatRFC3339LocalTime(vm::ptr pszDateTime, vm::cptr pUtc) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcParseDateTime(vm::ptr pUtc, vm::cptr pszDateTime) { fmt::throw_exception("Unimplemented" HERE); } s32 sceRtcParseRFC3339(vm::ptr pUtc, vm::cptr pszDateTime) { fmt::throw_exception("Unimplemented" HERE); } #define REG_FUNC(nid, name) REG_FNID(SceRtcUser, nid, name) DECLARE(arm_module_manager::SceRtc)("SceRtcUser", []() { REG_FUNC(0x23F79274, sceRtcGetCurrentTick); REG_FUNC(0xCDDD25FE, sceRtcGetCurrentNetworkTick); REG_FUNC(0x70FDE8F1, sceRtcGetCurrentClock); REG_FUNC(0x0572EDDC, sceRtcGetCurrentClockLocalTime); REG_FUNC(0x1282C436, sceRtcConvertUtcToLocalTime); REG_FUNC(0x0A05E201, sceRtcConvertLocalTimeToUtc); REG_FUNC(0x42CA8EB5, sceRtcFormatRFC2822LocalTime); REG_FUNC(0x147F2138, sceRtcFormatRFC2822); REG_FUNC(0x742250A9, sceRtcFormatRFC3339LocalTime); REG_FUNC(0xCCEA2B54, sceRtcFormatRFC3339); REG_FUNC(0xF17FD8B5, sceRtcIsLeapYear); REG_FUNC(0x49EB4556, sceRtcGetDaysInMonth); REG_FUNC(0x2F3531EB, sceRtcGetDayOfWeek); REG_FUNC(0xD7622935, sceRtcCheckValid); REG_FUNC(0x3A332F81, sceRtcSetTime_t); REG_FUNC(0xA6C36B6A, sceRtcSetTime64_t); REG_FUNC(0x8DE6FEB7, sceRtcGetTime_t); REG_FUNC(0xC995DE02, sceRtcGetTime64_t); REG_FUNC(0xF8B22B07, sceRtcSetDosTime); REG_FUNC(0x92ABEBAF, sceRtcGetDosTime); REG_FUNC(0xA79A8846, sceRtcSetWin32FileTime); REG_FUNC(0x8A95E119, sceRtcGetWin32FileTime); REG_FUNC(0x811313B3, sceRtcGetTickResolution); REG_FUNC(0xCD89F464, sceRtcSetTick); REG_FUNC(0xF2B238E2, sceRtcGetTick); REG_FUNC(0xC7385158, sceRtcCompareTick); REG_FUNC(0x4559E2DB, sceRtcTickAddTicks); REG_FUNC(0xAE26D920, sceRtcTickAddMicroseconds); REG_FUNC(0x979AFD79, sceRtcTickAddSeconds); REG_FUNC(0x4C358871, sceRtcTickAddMinutes); REG_FUNC(0x6F193F55, sceRtcTickAddHours); REG_FUNC(0x58DE3C70, sceRtcTickAddDays); REG_FUNC(0xE713C640, sceRtcTickAddWeeks); REG_FUNC(0x6321B4AA, sceRtcTickAddMonths); REG_FUNC(0xDF6C3E1B, sceRtcTickAddYears); REG_FUNC(0x2347CE12, sceRtcParseDateTime); REG_FUNC(0x2D18AEEC, sceRtcParseRFC3339); });