diff options
author | bunnei <bunneidev@gmail.com> | 2019-01-10 17:05:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-10 17:05:21 -0500 |
commit | c9ef8b0af1a5908822ca0f3bb3b2238018a555e8 (patch) | |
tree | 157da486e44b5f7083607159e1bb8bb3e4f20842 /src/core/settings.h | |
parent | 83e8ad23310937bb72f4412c15f45231a19202f7 (diff) | |
parent | ac7d8983ebc75b1b5e150ea7e03ff54267faf670 (diff) |
Merge pull request #1959 from DarkLordZach/custom-rtc
settings: Add support for setting the RTC manually
Diffstat (limited to 'src/core/settings.h')
-rw-r--r-- | src/core/settings.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index de01b05c0..29ce98983 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -6,6 +6,7 @@ #include <array> #include <atomic> +#include <chrono> #include <map> #include <optional> #include <string> @@ -350,6 +351,11 @@ struct Values { bool use_docked_mode; bool enable_nfc; std::optional<u32> rng_seed; + // Measured in seconds since epoch + std::optional<std::chrono::seconds> custom_rtc; + // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` + std::chrono::seconds custom_rtc_differential; + s32 current_user; s32 language_index; |