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,19 +518,11 @@ 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(metadataFile))
if (File.Exists(legacyFile) && !File.Exists(metadataFile))
{
File.Move(legacyFile, metadataFile);
}
if (File.Exists(metadataFile))
{
File.Delete(legacyFile);
}
}
// Create metadata file if it doesn't exist yet
ApplicationMetadata appMetadata;