mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 00:40:11 +00:00
Implement cellRtc HLE (#7933)
This commit is contained in:
parent
36fd1d0f0d
commit
765b14a8ba
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Utilities/BEType.h"
|
#include "Utilities/BEType.h"
|
||||||
|
|
||||||
// Return Codes
|
// Return Codes
|
||||||
enum
|
enum CellRtcError
|
||||||
{
|
{
|
||||||
CELL_RTC_ERROR_NOT_INITIALIZED = 0x80010601,
|
CELL_RTC_ERROR_NOT_INITIALIZED = 0x80010601,
|
||||||
CELL_RTC_ERROR_INVALID_POINTER = 0x80010602,
|
CELL_RTC_ERROR_INVALID_POINTER = 0x80010602,
|
||||||
@ -36,3 +36,16 @@ struct CellRtcDateTime
|
|||||||
be_t<u16> second;
|
be_t<u16> second;
|
||||||
be_t<u32> microsecond;
|
be_t<u32> microsecond;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
error_code cellRtcTickAddYears(vm::ptr<CellRtcTick> pTick0, vm::cptr<CellRtcTick> pTick1, s32 iAdd);
|
||||||
|
error_code cellRtcTickAddMonths(vm::ptr<CellRtcTick> pTick0, vm::cptr<CellRtcTick> pTick1, s32 lAdd);
|
||||||
|
error_code cellRtcTickAddDays(vm::ptr<CellRtcTick> pTick0, vm::cptr<CellRtcTick> pTick1, s32 lAdd);
|
||||||
|
error_code cellRtcTickAddHours(vm::ptr<CellRtcTick> pTick0, vm::cptr<CellRtcTick> pTick1, s32 lAdd);
|
||||||
|
error_code cellRtcTickAddMinutes(vm::ptr<CellRtcTick> pTick0, vm::cptr<CellRtcTick> pTick1, s64 lAdd);
|
||||||
|
error_code cellRtcTickAddSeconds(vm::ptr<CellRtcTick> pTick0, vm::cptr<CellRtcTick> pTick1, s64 lAdd);
|
||||||
|
|
||||||
|
error_code cellRtcSetTick(vm::ptr<CellRtcDateTime> pTime, vm::cptr<CellRtcTick> pTick);
|
||||||
|
u32 cellRtcGetTickResolution();
|
||||||
|
error_code cellRtcCheckValid(vm::cptr<CellRtcDateTime> pTime);
|
||||||
|
error_code cellRtcGetDayOfWeek(s32 year, s32 month, s32 day);
|
||||||
|
error_code cellRtcGetTick(vm::cptr<CellRtcDateTime> pTime, vm::ptr<CellRtcTick> pTick);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user