From fe832714d8270d6190338b097c69a56393d16ace Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 30 May 2026 23:25:57 +1000 Subject: [PATCH 1/2] added error message when the profilesPath is not found --- src/TelltaleToolKit/Toolkit.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/TelltaleToolKit/Toolkit.cs b/src/TelltaleToolKit/Toolkit.cs index 5761f46..c93d898 100644 --- a/src/TelltaleToolKit/Toolkit.cs +++ b/src/TelltaleToolKit/Toolkit.cs @@ -533,7 +533,13 @@ private void LoadGameProfiles(string dataFolder) { string profilesPath = Path.Combine(dataFolder, "game_profiles"); if (!Directory.Exists(profilesPath)) + { + Console.ForegroundColor = ConsoleColor.Red; + Console.WriteLine($"[Toolkit] Game profiles directory not found: {profilesPath}, from config data folder: {dataFolder}"); + Console.ResetColor(); + return; + } foreach (string file in Directory.GetFiles(profilesPath, "*.json", SearchOption.TopDirectoryOnly)) { From 340bf9b48f451fb0994917fa8823e860f9e2a0e6 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sun, 31 May 2026 19:32:02 +1000 Subject: [PATCH 2/2] changed error message to use "ToolkitLogger" --- src/TelltaleToolKit/Toolkit.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/TelltaleToolKit/Toolkit.cs b/src/TelltaleToolKit/Toolkit.cs index c93d898..ef5de07 100644 --- a/src/TelltaleToolKit/Toolkit.cs +++ b/src/TelltaleToolKit/Toolkit.cs @@ -534,9 +534,7 @@ private void LoadGameProfiles(string dataFolder) string profilesPath = Path.Combine(dataFolder, "game_profiles"); if (!Directory.Exists(profilesPath)) { - Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine($"[Toolkit] Game profiles directory not found: {profilesPath}, from config data folder: {dataFolder}"); - Console.ResetColor(); + ToolkitLogger.ConsoleLoggerInstance.LogError($"Game profiles directory not found: {profilesPath}, from config data folder: {dataFolder}"); return; }