From 6994be4281bc9025f0a180740331469cd5da2ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Arrouye?= <5017270+tarrouye@users.noreply.github.com> Date: Mon, 5 Jun 2023 22:55:00 -0700 Subject: [PATCH] Revert migration logic --- src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs b/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs index 9a28d4c2c..3cfa6b972 100644 --- a/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs +++ b/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs @@ -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