diff --git a/CreamInstaller/Classes/SteamCMD.cs b/CreamInstaller/Classes/SteamCMD.cs index 02cb492..f628619 100644 --- a/CreamInstaller/Classes/SteamCMD.cs +++ b/CreamInstaller/Classes/SteamCMD.cs @@ -21,7 +21,8 @@ internal static class SteamCMD internal static readonly int ProcessLimit = 20; internal static readonly Version MinimumAppInfoVersion = Version.Parse("2.3.3.0"); - internal static readonly string DirectoryPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\CreamInstaller"; + internal static readonly string DirectoryPathOld = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\CreamInstaller"; + internal static readonly string DirectoryPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\CreamInstaller"; internal static readonly string FilePath = DirectoryPath + @"\steamcmd.exe"; private static readonly int[] locks = new int[ProcessLimit]; @@ -72,6 +73,11 @@ internal static class SteamCMD internal static async Task Setup(IProgress progress = null) { await Cleanup(); + if (Directory.Exists(DirectoryPathOld)) + { + if (Directory.Exists(DirectoryPath)) Directory.Delete(DirectoryPath, true); + Directory.Move(DirectoryPathOld, DirectoryPath); + } if (!Directory.Exists(DirectoryPath)) Directory.CreateDirectory(DirectoryPath); if (!File.Exists(FilePath)) { diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index b6ac86b..72c5282 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -5,7 +5,7 @@ True Resources\ini.ico true - 2.3.3.0 + 2.3.3.1 Resources\ini.ico Automatically generates and installs CreamAPI files for Steam games on the user's computer. It can also generate and install CreamAPI for the Paradox Launcher should the user select a Paradox Interactive game.