settings,core,config_sys: Remove optional type from custom_rtc, rng_seed
core: Fix MSVC errors
This commit is contained in:
parent
5ccfaf0517
commit
4133165607
6 changed files with 32 additions and 25 deletions
|
@ -149,7 +149,9 @@ struct System::Impl {
|
|||
const auto current_time =
|
||||
std::chrono::duration_cast<std::chrono::seconds>(posix_time).count();
|
||||
Settings::values.custom_rtc_differential =
|
||||
Settings::values.custom_rtc.value_or(current_time) - current_time;
|
||||
(Settings::values.custom_rtc_enabled ? Settings::values.custom_rtc.GetValue()
|
||||
: current_time) -
|
||||
current_time;
|
||||
|
||||
// Create a default fs if one doesn't already exist.
|
||||
if (virtual_filesystem == nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue