Copy Wii NAND data to user NAND in WiiRoot

Dolphin doesn't use any of the WC24 files, so this can be done when
actually starting emulation in WiiRoot. The benefit of moving the
copy is that we don't need to handle temporary NANDs in a special way.
This commit is contained in:
Léo Lam 2018-05-12 17:08:24 +02:00
parent 5f567b38fe
commit 94dc746351
2 changed files with 2 additions and 5 deletions

View File

@ -81,11 +81,11 @@ void ShutdownWiiRoot()
void InitializeWiiFileSystemContents()
{
File::CopyDir(File::GetSysDirectory() + WII_USER_DIR, File::GetUserPath(D_SESSION_WIIROOT_IDX));
if (s_temp_wii_root.empty())
return;
File::CopyDir(File::GetSysDirectory() + WII_USER_DIR, s_temp_wii_root);
// Generate a SYSCONF with default settings for the temporary Wii NAND.
SysConf sysconf{IOS::HLE::GetIOS()->GetFS()};
sysconf.Save();

View File

@ -130,9 +130,6 @@ void SetLocale(std::string locale_name)
void CreateDirectories()
{
// Copy initial Wii NAND data from Sys to User.
File::CopyDir(File::GetSysDirectory() + WII_USER_DIR, File::GetUserPath(D_WIIROOT_IDX));
File::CreateFullPath(File::GetUserPath(D_USER_IDX));
File::CreateFullPath(File::GetUserPath(D_CACHE_IDX));
File::CreateFullPath(File::GetUserPath(D_CONFIG_IDX));