diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-01-08 01:40:23 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-01-08 01:40:28 +0100 |
commit | ac7d8983ebc75b1b5e150ea7e03ff54267faf670 (patch) | |
tree | 78ebbaa9f9af1570a16d6985943ac4b492d89b55 /src | |
parent | settings: Use std::chrono::seconds instead of s64 for RTC (diff) | |
download | yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.gz yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.bz2 yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.lz yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.xz yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.zst yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/settings.h | 9 | ||||
-rw-r--r-- | src/yuzu/configuration/config.cpp | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index bb5aafa0c..29ce98983 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -351,10 +351,11 @@ struct Values { bool use_docked_mode; bool enable_nfc; std::optional<u32> rng_seed; - std::optional<std::chrono::seconds> custom_rtc; // Measured in seconds since epoch - std::chrono::seconds - custom_rtc_differential; // Set on game boot, reset on stop. Seconds difference between - // current time and `custom_rtc` + // 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; diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 6c5284db5..ddf4cf552 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp @@ -663,7 +663,8 @@ void Config::SaveValues() { qt_config->setValue("custom_rtc_enabled", Settings::values.custom_rtc.has_value()); qt_config->setValue("custom_rtc", - Settings::values.custom_rtc.value_or(std::chrono::seconds{}).count()); + QVariant::fromValue<long long>( + Settings::values.custom_rtc.value_or(std::chrono::seconds{}).count())); qt_config->endGroup(); |