Change backup structure
This commit is contained in:
parent
516802f5b5
commit
fbfea1cdf2
1 changed files with 7 additions and 6 deletions
|
@ -33,10 +33,10 @@ namespace Ryujinx.Ui
|
||||||
if (!IsMigrationNeeded(basePath))
|
if (!IsMigrationNeeded(basePath))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
MigrateDirectories(basePath);
|
|
||||||
|
|
||||||
BackupSaves(basePath, backupPath);
|
BackupSaves(basePath, backupPath);
|
||||||
|
|
||||||
|
MigrateDirectories(basePath);
|
||||||
|
|
||||||
MigrateSaves(Device.System.FsClient, backupUserSavePath);
|
MigrateSaves(Device.System.FsClient, backupUserSavePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ namespace Ryujinx.Ui
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(newDir));
|
||||||
Directory.Move(oldDir, newDir);
|
Directory.Move(oldDir, newDir);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -73,16 +74,16 @@ namespace Ryujinx.Ui
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(backupPath);
|
Directory.CreateDirectory(backupPath);
|
||||||
|
|
||||||
string userSaveDir = Path.Combine(basePath, "bis/user/save");
|
string userSaveDir = Path.Combine(basePath, "nand/user/save");
|
||||||
string backupUserSaveDir = Path.Combine(backupPath, "userSaves");
|
string backupUserSaveDir = Path.Combine(backupPath, "nand/user/save");
|
||||||
|
|
||||||
if (Directory.Exists(userSaveDir))
|
if (Directory.Exists(userSaveDir))
|
||||||
{
|
{
|
||||||
RenameDirectory(userSaveDir, backupUserSaveDir);
|
RenameDirectory(userSaveDir, backupUserSaveDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
string systemSaveDir = Path.Combine(basePath, "bis/system/save");
|
string systemSaveDir = Path.Combine(basePath, "nand/system/save");
|
||||||
string backupSystemSaveDir = Path.Combine(backupPath, "systemSaves");
|
string backupSystemSaveDir = Path.Combine(backupPath, "nand/system/save");
|
||||||
|
|
||||||
if (Directory.Exists(systemSaveDir))
|
if (Directory.Exists(systemSaveDir))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue