HLE: implement system time

This commit is contained in:
wwylele 2016-07-20 20:20:01 +08:00
parent 624cd9cd98
commit 00c34e4df7
2 changed files with 60 additions and 2 deletions

View file

@ -25,13 +25,14 @@ namespace SharedPage {
struct DateTime {
u64_le date_time; // 0
u64_le update_tick; // 8
INSERT_PADDING_BYTES(0x20 - 0x10); // 10
u64_le tick_to_second_coefficient; // 10
u64_le tick_offset; // 18
};
static_assert(sizeof(DateTime) == 0x20, "Datetime size is wrong");
struct SharedPageDef {
// Most of these names are taken from the 3dbrew page linked above.
u32_le date_time_selector; // 0
u32_le date_time_counter; // 0
u8 running_hw; // 4
/// "Microcontroller hardware info"
u8 mcu_hw_info; // 5