mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
SetTick + GetTick, adding functions, checkvalid
This commit is contained in:
parent
3fbb68048e
commit
2b8d1da9f9
3 changed files with 325 additions and 61 deletions
|
@ -11,14 +11,57 @@
|
|||
|
||||
namespace Libraries::Rtc {
|
||||
|
||||
int PS4_SYSV_ABI sceRtcCheckValid() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcCheckValid(OrbisRtcDateTime* pTime) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTime == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
if (pTime->year == 0 || pTime->year > 9999)
|
||||
return ORBIS_RTC_ERROR_INVALID_YEAR;
|
||||
|
||||
if (pTime->month == 0 || pTime->month > 12)
|
||||
return ORBIS_RTC_ERROR_INVALID_MONTH;
|
||||
|
||||
if (pTime->day == 0)
|
||||
return ORBIS_RTC_ERROR_INVALID_DAY;
|
||||
|
||||
using namespace std::chrono;
|
||||
year chronoYear = year(pTime->year);
|
||||
month chronoMonth = month(pTime->month);
|
||||
int lastDay =
|
||||
static_cast<int>(unsigned(year_month_day_last{chronoYear / chronoMonth / last}.day()));
|
||||
|
||||
if (pTime->day > lastDay)
|
||||
return ORBIS_RTC_ERROR_INVALID_DAY;
|
||||
|
||||
if (pTime->hour >= 24)
|
||||
return ORBIS_RTC_ERROR_INVALID_HOUR;
|
||||
|
||||
if (pTime->minute >= 60)
|
||||
return ORBIS_RTC_ERROR_INVALID_MINUTE;
|
||||
|
||||
if (pTime->second >= 60)
|
||||
return ORBIS_RTC_ERROR_INVALID_SECOND;
|
||||
|
||||
if (pTime->microsecond >= 1000000)
|
||||
return ORBIS_RTC_ERROR_INVALID_MICROSECOND;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcCompareTick() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcCompareTick(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
if (pTick1->tick <= pTick2->tick)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
||||
return ORBIS_FAIL;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcConvertLocalTimeToUtc() {
|
||||
|
@ -32,8 +75,7 @@ int PS4_SYSV_ABI sceRtcConvertUtcToLocalTime() {
|
|||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcEnd() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcFormatRFC2822() {
|
||||
|
@ -97,6 +139,8 @@ int PS4_SYSV_ABI sceRtcGetCurrentRawNetworkTick() {
|
|||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcGetCurrentTick(OrbisRtcTick* pTick) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
pTick->tick = std::chrono::duration_cast<std::chrono::nanoseconds>(
|
||||
std::chrono::high_resolution_clock::now().time_since_epoch())
|
||||
.count();
|
||||
|
@ -118,12 +162,44 @@ int PS4_SYSV_ABI sceRtcGetDosTime() {
|
|||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcGetTick() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcGetTick(OrbisRtcDateTime* pTime, OrbisRtcTick* pTick) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTime == nullptr || pTick == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
int isTimeValid = sceRtcCheckValid(pTime);
|
||||
if (isTimeValid != 0)
|
||||
return isTimeValid;
|
||||
|
||||
if (pTime->month > 2) {
|
||||
pTime->month -= 3;
|
||||
} else {
|
||||
pTime->month += 9;
|
||||
pTime->year -= 1;
|
||||
}
|
||||
|
||||
int c = pTime->year / 100;
|
||||
int ya = pTime->year - 100 * c;
|
||||
|
||||
u64 days;
|
||||
u64 msec;
|
||||
|
||||
days = (146097 * c) >> 2 + (1461 * ya) >> 2 + (153 * pTime->month + 2) / 5 + pTime->day;
|
||||
days -= 307;
|
||||
days *= 86400000000;
|
||||
|
||||
msec = pTime->hour * 3600000000 + pTime->minute * 60000000 + pTime->second * 1000000 +
|
||||
pTime->microsecond;
|
||||
|
||||
pTick->tick = days + msec;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcGetTickResolution() {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
return 1000000;
|
||||
}
|
||||
|
||||
|
@ -138,13 +214,19 @@ int PS4_SYSV_ABI sceRtcGetWin32FileTime() {
|
|||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcInit() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcIsLeapYear() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcIsLeapYear(int yearInt) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (yearInt < 1)
|
||||
return ORBIS_RTC_ERROR_INVALID_YEAR;
|
||||
|
||||
using namespace std::chrono;
|
||||
|
||||
year_month_day_last ymdl{year(yearInt) / February / last};
|
||||
return (ymdl.day() == 29d);
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcParseDateTime() {
|
||||
|
@ -187,9 +269,53 @@ int PS4_SYSV_ABI sceRtcSetDosTime() {
|
|||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcSetTick() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcSetTick(OrbisRtcDateTime* pTime, OrbisRtcTick* pTick) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTime == nullptr || pTick == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
u32 ly, ld, lm, j;
|
||||
u64 days, msec;
|
||||
|
||||
days = pTick->tick / 86400000000;
|
||||
msec = pTick->tick % 86400000000;
|
||||
|
||||
days += 307;
|
||||
|
||||
j = (days << 2) - 1;
|
||||
ly = j / 146097;
|
||||
|
||||
j -= (146097 * ly);
|
||||
ld = j >> 2;
|
||||
|
||||
j = ((ld << 2) + 3) / 1461;
|
||||
ld = (((ld << 2) + 7) - 1461 * j) >> 2;
|
||||
|
||||
lm = (5 * ld - 3) / 153;
|
||||
ld = (5 * ld + 2 - 153 * lm) / 5;
|
||||
ly = 100 * ly + j;
|
||||
|
||||
if (lm < 10) {
|
||||
lm += 3;
|
||||
} else {
|
||||
lm -= 9;
|
||||
ly++;
|
||||
}
|
||||
|
||||
pTime->year = ly;
|
||||
pTime->month = lm;
|
||||
pTime->day = ld;
|
||||
|
||||
pTime->hour = msec / 3600000000;
|
||||
msec %= 3600000000;
|
||||
pTime->minute = msec / 60000000;
|
||||
msec %= 60000000;
|
||||
pTime->second = msec / 1000000;
|
||||
msec %= 1000000;
|
||||
pTime->microsecond = msec;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcSetTime_t() {
|
||||
|
@ -202,49 +328,166 @@ int PS4_SYSV_ABI sceRtcSetWin32FileTime() {
|
|||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddDays() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddDays(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingDays) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = (addingDays * 86400000000) + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddHours() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddHours(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingHours) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = (addingHours * 3600000000) + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddMicroseconds() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddMicroseconds(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2,
|
||||
s64 addingMicroseconds) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = addingMicroseconds + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddMinutes() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddMinutes(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2,
|
||||
s64 addingMinutes) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = (addingMinutes * 60000000) + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddMonths() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddMonths(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingMonths) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
if (addingMonths == 0) {
|
||||
pTick1->tick = pTick2->tick;
|
||||
return 0;
|
||||
}
|
||||
|
||||
OrbisRtcDateTime time;
|
||||
s64 s;
|
||||
s64 tempMonth;
|
||||
|
||||
sceRtcSetTick(&time, pTick1);
|
||||
|
||||
if (addingMonths >= 0) {
|
||||
s = 1;
|
||||
} else {
|
||||
s = -1;
|
||||
}
|
||||
|
||||
time.year += (addingMonths / 12);
|
||||
tempMonth = time.month + (addingMonths % 12) - 1;
|
||||
|
||||
if (tempMonth > 11 || tempMonth < 0) {
|
||||
tempMonth -= s * 12;
|
||||
time.year += s;
|
||||
}
|
||||
|
||||
time.month = tempMonth + 1;
|
||||
|
||||
using namespace std::chrono;
|
||||
year chronoYear = year(time.year);
|
||||
month chronoMonth = month(time.month);
|
||||
int lastDay =
|
||||
static_cast<int>(unsigned(year_month_day_last{chronoYear / chronoMonth / last}.day()));
|
||||
|
||||
if (time.day > lastDay) {
|
||||
time.day = lastDay;
|
||||
}
|
||||
|
||||
u64 timeIsValid = sceRtcCheckValid(&time);
|
||||
if (timeIsValid == 0) {
|
||||
sceRtcGetTick(&time, pTick1);
|
||||
} else {
|
||||
return timeIsValid;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddSeconds() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddSeconds(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2,
|
||||
s64 addingSeconds) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = (addingSeconds * 1000000) + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddTicks() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddTicks(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s64 addingTicks) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = addingTicks + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddWeeks() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddWeeks(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingWeeks) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
pTick1->tick = (addingWeeks * 0x8cd0e3a000) + pTick2->tick;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceRtcTickAddYears() {
|
||||
LOG_ERROR(Lib_Rtc, "(STUBBED) called");
|
||||
return ORBIS_OK;
|
||||
int PS4_SYSV_ABI sceRtcTickAddYears(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s16 addingYears) {
|
||||
LOG_TRACE(Lib_Rtc, "called");
|
||||
|
||||
if (pTick1 == nullptr || pTick2 == nullptr)
|
||||
return ORBIS_RTC_ERROR_INVALID_POINTER;
|
||||
|
||||
OrbisRtcDateTime time;
|
||||
|
||||
if (addingYears == 0) {
|
||||
pTick1->tick = pTick2->tick;
|
||||
return 0;
|
||||
}
|
||||
|
||||
sceRtcSetTick(&time, pTick1);
|
||||
|
||||
time.year += addingYears;
|
||||
|
||||
u64 timeIsValid = sceRtcCheckValid(&time);
|
||||
if (timeIsValid == 0) {
|
||||
sceRtcGetTick(&time, pTick1);
|
||||
} else {
|
||||
return timeIsValid;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void RegisterlibSceRtc(Core::Loader::SymbolsResolver* sym) {
|
||||
|
|
|
@ -15,8 +15,18 @@ struct OrbisRtcTick {
|
|||
u64 tick;
|
||||
};
|
||||
|
||||
int PS4_SYSV_ABI sceRtcCheckValid();
|
||||
int PS4_SYSV_ABI sceRtcCompareTick();
|
||||
struct OrbisRtcDateTime {
|
||||
int16_t year;
|
||||
int16_t month;
|
||||
int16_t day;
|
||||
int16_t hour;
|
||||
int16_t minute;
|
||||
int16_t second;
|
||||
int32_t microsecond;
|
||||
};
|
||||
|
||||
int PS4_SYSV_ABI sceRtcCheckValid(OrbisRtcDateTime* pTime);
|
||||
int PS4_SYSV_ABI sceRtcCompareTick(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2);
|
||||
int PS4_SYSV_ABI sceRtcConvertLocalTimeToUtc();
|
||||
int PS4_SYSV_ABI sceRtcConvertUtcToLocalTime();
|
||||
int PS4_SYSV_ABI sceRtcEnd();
|
||||
|
@ -36,12 +46,12 @@ int PS4_SYSV_ABI sceRtcGetCurrentTick(OrbisRtcTick* pTick);
|
|||
int PS4_SYSV_ABI sceRtcGetDayOfWeek();
|
||||
int PS4_SYSV_ABI sceRtcGetDaysInMonth();
|
||||
int PS4_SYSV_ABI sceRtcGetDosTime();
|
||||
int PS4_SYSV_ABI sceRtcGetTick();
|
||||
int PS4_SYSV_ABI sceRtcGetTick(OrbisRtcDateTime* pTime, OrbisRtcTick* pTick);
|
||||
int PS4_SYSV_ABI sceRtcGetTickResolution();
|
||||
int PS4_SYSV_ABI sceRtcGetTime_t();
|
||||
int PS4_SYSV_ABI sceRtcGetWin32FileTime();
|
||||
int PS4_SYSV_ABI sceRtcInit();
|
||||
int PS4_SYSV_ABI sceRtcIsLeapYear();
|
||||
int PS4_SYSV_ABI sceRtcIsLeapYear(int yearInt);
|
||||
int PS4_SYSV_ABI sceRtcParseDateTime();
|
||||
int PS4_SYSV_ABI sceRtcParseRFC3339();
|
||||
int PS4_SYSV_ABI sceRtcSetConf();
|
||||
|
@ -50,18 +60,21 @@ int PS4_SYSV_ABI sceRtcSetCurrentDebugNetworkTick();
|
|||
int PS4_SYSV_ABI sceRtcSetCurrentNetworkTick();
|
||||
int PS4_SYSV_ABI sceRtcSetCurrentTick();
|
||||
int PS4_SYSV_ABI sceRtcSetDosTime();
|
||||
int PS4_SYSV_ABI sceRtcSetTick();
|
||||
int PS4_SYSV_ABI sceRtcSetTick(OrbisRtcDateTime* pTime, OrbisRtcTick* pTick);
|
||||
int PS4_SYSV_ABI sceRtcSetTime_t();
|
||||
int PS4_SYSV_ABI sceRtcSetWin32FileTime();
|
||||
int PS4_SYSV_ABI sceRtcTickAddDays();
|
||||
int PS4_SYSV_ABI sceRtcTickAddHours();
|
||||
int PS4_SYSV_ABI sceRtcTickAddMicroseconds();
|
||||
int PS4_SYSV_ABI sceRtcTickAddMinutes();
|
||||
int PS4_SYSV_ABI sceRtcTickAddMonths();
|
||||
int PS4_SYSV_ABI sceRtcTickAddSeconds();
|
||||
int PS4_SYSV_ABI sceRtcTickAddTicks();
|
||||
int PS4_SYSV_ABI sceRtcTickAddWeeks();
|
||||
int PS4_SYSV_ABI sceRtcTickAddYears();
|
||||
int PS4_SYSV_ABI sceRtcTickAddDays(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingDays);
|
||||
int PS4_SYSV_ABI sceRtcTickAddHours(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingHours);
|
||||
int PS4_SYSV_ABI sceRtcTickAddMicroseconds(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2,
|
||||
s64 addingMicroseconds);
|
||||
int PS4_SYSV_ABI sceRtcTickAddMinutes(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2,
|
||||
s64 addingMinutes);
|
||||
int PS4_SYSV_ABI sceRtcTickAddMonths(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingMonths);
|
||||
int PS4_SYSV_ABI sceRtcTickAddSeconds(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2,
|
||||
s64 addingSeconds);
|
||||
int PS4_SYSV_ABI sceRtcTickAddTicks(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s64 addingTicks);
|
||||
int PS4_SYSV_ABI sceRtcTickAddWeeks(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s32 addingWeeks);
|
||||
int PS4_SYSV_ABI sceRtcTickAddYears(OrbisRtcTick* pTick1, OrbisRtcTick* pTick2, s16 addingYears);
|
||||
|
||||
void RegisterlibSceRtc(Core::Loader::SymbolsResolver* sym);
|
||||
} // namespace Libraries::Rtc
|
|
@ -14,4 +14,12 @@ constexpr int ORBIS_RTC_ERROR_INVALID_DAYS_PARAMETER = 0x80010623;
|
|||
constexpr int ORBIS_RTC_ERROR_INVALID_HOURS_PARAMETER = 0x80010624;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_MINUTES_PARAMETER = 0x80010625;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_SECONDS_PARAMETER = 0x80010626;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_MILLISECONDS_PARAMETER = 0x80010627;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_MILLISECONDS_PARAMETER = 0x80010627;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_POINTER = 0x80B50002;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_YEAR = 0x80B50008;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_MONTH = 0x80B50009;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_DAY = 0x80B5000A;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_HOUR = 0x80B5000B;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_MINUTE = 0x80B5000C;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_SECOND = 0x80B5000D;
|
||||
constexpr int ORBIS_RTC_ERROR_INVALID_MICROSECOND = 0x80B5000E;
|
Loading…
Add table
Reference in a new issue