mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-01 19:13:38 +00:00
Migrate non-destructive calls of File::CopyDir() to File::Copy().
This commit is contained in:
parent
884917a6d5
commit
1ed0e014cd
@ -186,7 +186,10 @@ static void InitializeDeterministicWiiSaves(FS::FileSystem* session_fs,
|
|||||||
|
|
||||||
const auto& netplay_redirect_folder = boot_session_data.GetWiiSyncRedirectFolder();
|
const auto& netplay_redirect_folder = boot_session_data.GetWiiSyncRedirectFolder();
|
||||||
if (!netplay_redirect_folder.empty())
|
if (!netplay_redirect_folder.empty())
|
||||||
File::CopyDir(netplay_redirect_folder, s_temp_redirect_root + "/");
|
{
|
||||||
|
File::CreateDirs(s_temp_redirect_root);
|
||||||
|
File::Copy(netplay_redirect_folder, s_temp_redirect_root);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -359,10 +362,10 @@ void InitializeWiiFileSystemContents(
|
|||||||
|
|
||||||
if (!File::IsDirectory(save_redirect->m_target_path))
|
if (!File::IsDirectory(save_redirect->m_target_path))
|
||||||
{
|
{
|
||||||
File::CreateFullPath(save_redirect->m_target_path + "/");
|
File::CreateDirs(save_redirect->m_target_path);
|
||||||
if (save_redirect->m_clone)
|
if (save_redirect->m_clone)
|
||||||
{
|
{
|
||||||
File::CopyDir(Common::GetTitleDataPath(title_id, Common::FROM_SESSION_ROOT),
|
File::Copy(Common::GetTitleDataPath(title_id, Common::FROM_SESSION_ROOT),
|
||||||
save_redirect->m_target_path);
|
save_redirect->m_target_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -248,7 +248,7 @@ void AutoUpdateChecker::TriggerUpdate(const AutoUpdateChecker::NewVersionInforma
|
|||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// Copy the updater so it can update itself if needed.
|
// Copy the updater so it can update itself if needed.
|
||||||
const std::string reloc_updater_path = UpdaterPath(true);
|
const std::string reloc_updater_path = UpdaterPath(true);
|
||||||
if (!File::CopyDir(UpdaterPath(), reloc_updater_path))
|
if (!File::Copy(UpdaterPath(), reloc_updater_path))
|
||||||
{
|
{
|
||||||
CriticalAlertFmtT("Unable to create updater copy.");
|
CriticalAlertFmtT("Unable to create updater copy.");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user