mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Core/Boot: Add Wii FS sync data (for temp NAND/netplay) to BootSessionData and handle it in the boot and shutdown logic.
This commit is contained in:
@ -617,9 +617,12 @@ static void EmuThread(std::unique_ptr<BootParameters> boot, WindowSystemInfo wsi
|
||||
// Initialise Wii filesystem contents.
|
||||
// This is done here after Boot and not in BootManager to ensure that we operate
|
||||
// with the correct title context since save copying requires title directories to exist.
|
||||
Common::ScopeGuard wiifs_guard{&Core::CleanUpWiiFileSystemContents};
|
||||
Common::ScopeGuard wiifs_guard{[&boot_session_data] {
|
||||
Core::CleanUpWiiFileSystemContents(boot_session_data);
|
||||
boot_session_data.InvokeWiiSyncCleanup();
|
||||
}};
|
||||
if (SConfig::GetInstance().bWii)
|
||||
Core::InitializeWiiFileSystemContents(savegame_redirect);
|
||||
Core::InitializeWiiFileSystemContents(savegame_redirect, boot_session_data);
|
||||
else
|
||||
wiifs_guard.Dismiss();
|
||||
|
||||
|
Reference in New Issue
Block a user