From 31ceaa865d0ae2e0881775b4a0c96f3d4084a64e Mon Sep 17 00:00:00 2001 From: Damglador Date: Mon, 2 Mar 2026 07:54:46 +0100 Subject: [PATCH] Don't create ~/DuckGame It has been over 5 years since the location changed, there's no reason to keep creating this directory. --- DuckGame/src/MonoTime/File/DuckFile.cs | 29 -------------------------- 1 file changed, 29 deletions(-) diff --git a/DuckGame/src/MonoTime/File/DuckFile.cs b/DuckGame/src/MonoTime/File/DuckFile.cs index 14b9b4ad..562c464e 100644 --- a/DuckGame/src/MonoTime/File/DuckFile.cs +++ b/DuckGame/src/MonoTime/File/DuckFile.cs @@ -232,35 +232,6 @@ public static void Initialize() flag = false; appdataSave = false; } - if (flag) - { - appdataSave = true; - try - { - string str1 = oldSaveLocation + _saveDirectory; - if (Program.alternateSaveLocation && DirectoryExists(str1) && !DirectoryExists(saveDirectory)) - DirectoryCopy(str1, saveDirectory, true); - string path = str1 + "where_is_my_save.txt"; - if (!File.Exists(path)) - { - CreatePath(str1); - Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); - using (StreamWriter streamWriter = new StreamWriter(str1 + "Save Data.url")) - { - string location = Assembly.GetExecutingAssembly().Location; - streamWriter.WriteLine("[InternetShortcut]"); - streamWriter.WriteLine("URL=file:///" + saveDirectory); - streamWriter.WriteLine("IconIndex=0"); - string str2 = location.Replace('\\', '/'); - streamWriter.WriteLine("IconFile=" + str2); - } - File.WriteAllText(path, "Hey! Keeping save data in the Documents folder was causing all kinds\nof issues for people, and it's with great sadness that I had to move your data.\nDon't worry, it still exists- your data is now located here:\n\n" + saveDirectory + "\n\nAny save data still located in this folder is for the old version (pre-2020) of Duck Game."); - } - } - catch (Exception) - { - } - } DevConsole.Log(DCSection.General, "DuckFile.Initialize().. " + (_saveRoot.Contains("OneDrive/") ? "Ah, a |DGBLUE|OneDrive|WHITE| user, I see.." : "")); if (!DirectoryExists(saveDirectory)) freshInstall = true;