From af6ba888a3a91ed7f1c2cc9745f02f8670d189c6 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Sat, 12 Feb 2022 03:22:30 -0500 Subject: [PATCH] v2.3.3.1 - Moved program data folder from %AppData% to C:\ProgramData to fix a SteamCMD non-English character issue --- CreamInstaller/Classes/SteamCMD.cs | 8 +++++++- CreamInstaller/CreamInstaller.csproj | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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.