Boot: Move initial UpdateWantDeterminism call earlier

Just to make the InitializeWiiRoot call a bit neater.
This commit is contained in:
JosJuice 2021-03-18 22:59:59 +01:00
parent 1dfeb73589
commit 74343b4276
2 changed files with 4 additions and 5 deletions

View File

@ -433,13 +433,14 @@ bool BootCore(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
if (StartUp.bWii && DiscIO::IsNTSC(StartUp.m_region) && Config::Get(Config::SYSCONF_PAL60))
Config::SetCurrent(Config::SYSCONF_PAL60, false);
Core::UpdateWantDeterminism(/*initial*/ true);
if (StartUp.bWii)
{
const bool want_determinism = Movie::IsMovieActive() || NetPlay::IsNetPlayRunning();
Core::InitializeWiiRoot(want_determinism);
Core::InitializeWiiRoot(Core::WantsDeterminism());
// Ensure any new settings are written to the SYSCONF
if (!want_determinism)
if (!Core::WantsDeterminism())
{
Core::BackupWiiSettings();
ConfigLoaders::SaveToSYSCONF(Config::LayerType::Meta);

View File

@ -231,8 +231,6 @@ bool Init(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
// Drain any left over jobs
HostDispatchJobs();
Core::UpdateWantDeterminism(/*initial*/ true);
INFO_LOG_FMT(BOOT, "Starting core = {} mode", SConfig::GetInstance().bWii ? "Wii" : "GameCube");
INFO_LOG_FMT(BOOT, "CPU Thread separate = {}", SConfig::GetInstance().bCPUThread ? "Yes" : "No");