Core: Only init Wii FS contents in Wii mode

There's no filesystem when not in Wii mode, so... bad things
would happen.
This commit is contained in:
Léo Lam 2018-05-23 13:39:53 +02:00
parent da03ff2e25
commit 4fd1674c49

View File

@ -521,7 +521,10 @@ static void EmuThread(std::unique_ptr<BootParameters> boot)
// This is done here after Boot and not in HW to ensure that we operate
// with the correct title context since save copying requires title directories to exist.
Common::ScopeGuard wiifs_guard{Core::CleanUpWiiFileSystemContents};
Core::InitializeWiiFileSystemContents();
if (SConfig::GetInstance().bWii)
Core::InitializeWiiFileSystemContents();
else
wiifs_guard.Dismiss();
// This adds the SyncGPU handler to CoreTiming, so now CoreTiming::Advance might block.
Fifo::Prepare();