diff options
| author | 2019-01-07 19:40:23 -0500 | |
|---|---|---|
| committer | 2019-01-07 19:40:28 -0500 | |
| commit | ac7d8983ebc75b1b5e150ea7e03ff54267faf670 (patch) | |
| tree | 78ebbaa9f9af1570a16d6985943ac4b492d89b55 /src | |
| parent | settings: Use std::chrono::seconds instead of s64 for RTC (diff) | |
| download | yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.gz yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.tar.xz yuzu-ac7d8983ebc75b1b5e150ea7e03ff54267faf670.zip | |
settings: Fix comment structure
Diffstat (limited to 'src')
| -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 { | |||
| 351 | bool use_docked_mode; | 351 | bool use_docked_mode; |
| 352 | bool enable_nfc; | 352 | bool enable_nfc; |
| 353 | std::optional<u32> rng_seed; | 353 | std::optional<u32> rng_seed; |
| 354 | std::optional<std::chrono::seconds> custom_rtc; // Measured in seconds since epoch | 354 | // Measured in seconds since epoch |
| 355 | std::chrono::seconds | 355 | std::optional<std::chrono::seconds> custom_rtc; |
| 356 | custom_rtc_differential; // Set on game boot, reset on stop. Seconds difference between | 356 | // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` |
| 357 | // current time and `custom_rtc` | 357 | std::chrono::seconds custom_rtc_differential; |
| 358 | |||
| 358 | s32 current_user; | 359 | s32 current_user; |
| 359 | s32 language_index; | 360 | s32 language_index; |
| 360 | 361 | ||
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() { | |||
| 663 | 663 | ||
| 664 | qt_config->setValue("custom_rtc_enabled", Settings::values.custom_rtc.has_value()); | 664 | qt_config->setValue("custom_rtc_enabled", Settings::values.custom_rtc.has_value()); |
| 665 | qt_config->setValue("custom_rtc", | 665 | qt_config->setValue("custom_rtc", |
| 666 | Settings::values.custom_rtc.value_or(std::chrono::seconds{}).count()); | 666 | QVariant::fromValue<long long>( |
| 667 | Settings::values.custom_rtc.value_or(std::chrono::seconds{}).count())); | ||
| 667 | 668 | ||
| 668 | qt_config->endGroup(); | 669 | qt_config->endGroup(); |
| 669 | 670 | ||