mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-15 07:00:32 +00:00
Revert migration logic
This commit is contained in:
parent
f7560a7a55
commit
6994be4281
1 changed files with 2 additions and 10 deletions
|
@ -518,17 +518,9 @@ namespace Ryujinx.Ui.App.Common
|
|||
|
||||
// Handle migration from old default to current user
|
||||
string legacyFile = Path.Combine(guiFolder, "metadata.json");
|
||||
if (File.Exists(legacyFile))
|
||||
if (File.Exists(legacyFile) && !File.Exists(metadataFile))
|
||||
{
|
||||
if (!File.Exists(metadataFile))
|
||||
{
|
||||
File.Move(legacyFile, metadataFile);
|
||||
}
|
||||
|
||||
if (File.Exists(metadataFile))
|
||||
{
|
||||
File.Delete(legacyFile);
|
||||
}
|
||||
File.Move(legacyFile, metadataFile);
|
||||
}
|
||||
|
||||
// Create metadata file if it doesn't exist yet
|
||||
|
|
Loading…
Reference in a new issue