Revert migration logic

This commit is contained in:
Théo Arrouye 2023-06-05 22:55:00 -07:00
parent f7560a7a55
commit 6994be4281

View file

@ -518,17 +518,9 @@ namespace Ryujinx.Ui.App.Common
// Handle migration from old default to current user // Handle migration from old default to current user
string legacyFile = Path.Combine(guiFolder, "metadata.json"); 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);
{
File.Move(legacyFile, metadataFile);
}
if (File.Exists(metadataFile))
{
File.Delete(legacyFile);
}
} }
// Create metadata file if it doesn't exist yet // Create metadata file if it doesn't exist yet