From 6c3e9c464a3a54dbc0a2c560da463fb3269b8ea6 Mon Sep 17 00:00:00 2001 From: Frog Date: Fri, 17 Jul 2026 00:51:07 -0700 Subject: [PATCH] Relocate logs to Logs subdirectory Move all log files from C:\ProgramData\CreamInstaller\ to C:\ProgramData\CreamInstaller\Logs\ --- CreamInstaller/Utility/ProgramData.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/CreamInstaller/Utility/ProgramData.cs b/CreamInstaller/Utility/ProgramData.cs index d017eee..368a591 100644 --- a/CreamInstaller/Utility/ProgramData.cs +++ b/CreamInstaller/Utility/ProgramData.cs @@ -80,10 +80,11 @@ internal static class ProgramData private static readonly string ExtraProtectionChoicesPath = CachePath + @"\extraprotection.json"; private static readonly string InstalledGamesPath = CachePath + @"\installed.json"; - internal static readonly string ScanLogPath = Path.Combine(DirectoryPath, "game-scan.log"); -internal static readonly string SteamLogPath = Path.Combine(DirectoryPath, "cream-steam.log"); -internal static readonly string AppLogPath = Path.Combine(DirectoryPath, "CreamInstaller.log"); -internal static readonly string UnlockerLogPath = Path.Combine(DirectoryPath, "unlocker.log"); + private static readonly string LogsPath = DirectoryPath + @"\Logs"; + internal static readonly string ScanLogPath = LogsPath + @"\game-scan.log"; + internal static readonly string SteamLogPath = LogsPath + @"\cream-steam.log"; + internal static readonly string AppLogPath = LogsPath + @"\CreamInstaller.log"; + internal static readonly string UnlockerLogPath = LogsPath + @"\unlocker.log"; internal readonly record struct LogEventArgs(string Message, LogDestination Destination, LogLevel Level, Exception Exception = null); @@ -243,6 +244,11 @@ internal static event Action OnLog; MigrateOldPath(OldProgramChoicesJsonPath, ProgramChoicesPath); MigrateOldPath(OldKoaloaderProxyChoicesPath, KoaloaderProxyChoicesPath); MigrateOldPath(OldExtraProtectionChoicesPath, ExtraProtectionChoicesPath); + LogsPath.CreateDirectory(); + MigrateOldPath(DirectoryPath + @"\game-scan.log", ScanLogPath); + MigrateOldPath(DirectoryPath + @"\cream-steam.log", SteamLogPath); + MigrateOldPath(DirectoryPath + @"\CreamInstaller.log", AppLogPath); + MigrateOldPath(DirectoryPath + @"\unlocker.log", UnlockerLogPath); }); private static void MigrateOldPath(string oldPath, string newPath)