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:
5 files changed
+61
-11
No files matched your search
@@ -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