From 53c968558040758d97bbd8d3b65ee35d06830a99 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:19:38 -0500 Subject: [PATCH] Fix bad path causing the config to get wiped --- ReCodeItCLI/Commands/ReMap.cs | 1 + RecodeItLib/Utils/Logger.cs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ReCodeItCLI/Commands/ReMap.cs b/ReCodeItCLI/Commands/ReMap.cs index 9ce5d36..d06316d 100644 --- a/ReCodeItCLI/Commands/ReMap.cs +++ b/ReCodeItCLI/Commands/ReMap.cs @@ -25,6 +25,7 @@ public class ReMap : ICommand public ValueTask ExecuteAsync(IConsole console) { + DataProvider.IsCli = true; DataProvider.LoadAppSettings(); DataProvider.Settings.Remapper.MappingPath = MappingJsonPath; diff --git a/RecodeItLib/Utils/Logger.cs b/RecodeItLib/Utils/Logger.cs index e4ef50d..055fe68 100644 --- a/RecodeItLib/Utils/Logger.cs +++ b/RecodeItLib/Utils/Logger.cs @@ -51,7 +51,6 @@ public static class Logger LogInternal(messageToLog); _heldMessages.Remove(heldMessagesKP.Key); } - } } @@ -84,7 +83,7 @@ public static class Logger } private const string _defaultFileName = "ReCodeIt.log"; - private static string _logPath => Path.Combine(AppContext.BaseDirectory, "Data", "Settings.jsonc"); + private static string _logPath => Path.Combine(AppContext.BaseDirectory, "Data", "ReCodeIt.log"); public static void ClearLog() { if (File.Exists(_logPath))