settings: Remove std::chrono usage
Alleviates the dependency on chrono for all files that include settings.h
This commit is contained in:
parent
8b996015a8
commit
ef811c6425
7 changed files with 20 additions and 24 deletions
|
@ -412,8 +412,7 @@ void Config::ReadValues() {
|
|||
|
||||
const auto custom_rtc_enabled = sdl2_config->GetBoolean("System", "custom_rtc_enabled", false);
|
||||
if (custom_rtc_enabled) {
|
||||
Settings::values.custom_rtc =
|
||||
std::chrono::seconds(sdl2_config->GetInteger("System", "custom_rtc", 0));
|
||||
Settings::values.custom_rtc = sdl2_config->GetInteger("System", "custom_rtc", 0);
|
||||
} else {
|
||||
Settings::values.custom_rtc = std::nullopt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue