NetKDTime: Move internal IOCtl values into IOCtl function
These are only ever used here, so they can be turned into an internal implementation detail.
This commit is contained in:
parent
6268ee44a1
commit
caba81ad3b
|
@ -20,6 +20,15 @@ NetKDTimeDevice::~NetKDTimeDevice() = default;
|
||||||
|
|
||||||
std::optional<IPCReply> NetKDTimeDevice::IOCtl(const IOCtlRequest& request)
|
std::optional<IPCReply> NetKDTimeDevice::IOCtl(const IOCtlRequest& request)
|
||||||
{
|
{
|
||||||
|
enum : u32
|
||||||
|
{
|
||||||
|
IOCTL_NW24_GET_UNIVERSAL_TIME = 0x14,
|
||||||
|
IOCTL_NW24_SET_UNIVERSAL_TIME = 0x15,
|
||||||
|
IOCTL_NW24_UNIMPLEMENTED = 0x16,
|
||||||
|
IOCTL_NW24_SET_RTC_COUNTER = 0x17,
|
||||||
|
IOCTL_NW24_GET_TIME_DIFF = 0x18,
|
||||||
|
};
|
||||||
|
|
||||||
s32 result = 0;
|
s32 result = 0;
|
||||||
u32 common_result = 0;
|
u32 common_result = 0;
|
||||||
// TODO Writes stuff to /shared2/nwc24/misc.bin
|
// TODO Writes stuff to /shared2/nwc24/misc.bin
|
||||||
|
|
|
@ -31,15 +31,6 @@ private:
|
||||||
// what the host OS thinks
|
// what the host OS thinks
|
||||||
void SetAdjustedUTC(u64 wii_utc);
|
void SetAdjustedUTC(u64 wii_utc);
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
IOCTL_NW24_GET_UNIVERSAL_TIME = 0x14,
|
|
||||||
IOCTL_NW24_SET_UNIVERSAL_TIME = 0x15,
|
|
||||||
IOCTL_NW24_UNIMPLEMENTED = 0x16,
|
|
||||||
IOCTL_NW24_SET_RTC_COUNTER = 0x17,
|
|
||||||
IOCTL_NW24_GET_TIME_DIFF = 0x18,
|
|
||||||
};
|
|
||||||
|
|
||||||
u64 rtc = 0;
|
u64 rtc = 0;
|
||||||
s64 utcdiff = 0;
|
s64 utcdiff = 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue