summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar lat9nq2023-06-05 20:41:50 -0400
committerGravatar lat9nq2023-07-21 10:56:07 -0400
commit413316560784348b8ea2684d272b974fd0428267 (patch)
treed3a9015a0dcf29744d45d630246a19d1fae83dd9 /src/common
parentsettings: Pool SetGlobal functions (diff)
downloadyuzu-413316560784348b8ea2684d272b974fd0428267.tar.gz
yuzu-413316560784348b8ea2684d272b974fd0428267.tar.xz
yuzu-413316560784348b8ea2684d272b974fd0428267.zip
settings,core,config_sys: Remove optional type from custom_rtc, rng_seed
core: Fix MSVC errors
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp3
-rw-r--r--src/common/settings.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index e3f30f7e3..696929479 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -62,7 +62,8 @@ void LogSettings() {
62 62
63 LOG_INFO(Config, "yuzu Configuration:"); 63 LOG_INFO(Config, "yuzu Configuration:");
64 log_setting("Controls_UseDockedMode", values.use_docked_mode.GetValue()); 64 log_setting("Controls_UseDockedMode", values.use_docked_mode.GetValue());
65 log_setting("System_RngSeed", values.rng_seed.GetValue().value_or(0)); 65 log_setting("System_RngSeedEnabled", values.rng_seed_enabled.GetValue());
66 log_setting("System_RngSeed", values.rng_seed.GetValue());
66 log_setting("System_DeviceName", values.device_name.GetValue()); 67 log_setting("System_DeviceName", values.device_name.GetValue());
67 log_setting("System_CurrentUser", values.current_user.GetValue()); 68 log_setting("System_CurrentUser", values.current_user.GetValue());
68 log_setting("System_LanguageIndex", values.language_index.GetValue()); 69 log_setting("System_LanguageIndex", values.language_index.GetValue());
diff --git a/src/common/settings.h b/src/common/settings.h
index 61d15467d..999f8b5be 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -505,10 +505,12 @@ struct Values {
505 SwitchableSetting<u8> bg_blue{0, "bg_blue"}; 505 SwitchableSetting<u8> bg_blue{0, "bg_blue"};
506 506
507 // System 507 // System
508 SwitchableSetting<std::optional<u32>> rng_seed{std::optional<u32>(), "rng_seed"}; 508 SwitchableSetting<bool> rng_seed_enabled{false, "rng_seed_enabled"};
509 SwitchableSetting<u32> rng_seed{0, "rng_seed"};
509 Setting<std::string> device_name{"Yuzu", "device_name"}; 510 Setting<std::string> device_name{"Yuzu", "device_name"};
510 // Measured in seconds since epoch 511 // Measured in seconds since epoch
511 std::optional<s64> custom_rtc; 512 SwitchableSetting<bool> custom_rtc_enabled{false, "custom_rtc_enabled"};
513 SwitchableSetting<s64> custom_rtc{0, "custom_rtc"};
512 // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` 514 // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc`
513 s64 custom_rtc_differential; 515 s64 custom_rtc_differential;
514 516