From 35aec9395286454220ec22700bb763224a25b559 Mon Sep 17 00:00:00 2001 From: Floogen <31755155+Floogen@users.noreply.github.com> Date: Thu, 1 Jan 2026 19:41:04 -0600 Subject: [PATCH 1/4] Added additional logging for SMAPI-latest.txt grab --- Stardrop/Views/MainWindow.axaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Stardrop/Views/MainWindow.axaml.cs b/Stardrop/Views/MainWindow.axaml.cs index 0724806..10a1366 100644 --- a/Stardrop/Views/MainWindow.axaml.cs +++ b/Stardrop/Views/MainWindow.axaml.cs @@ -1801,6 +1801,7 @@ private async Task CheckForModUpdates(List mods, bool useCache = false, boo if (Program.settings.GameDetails is null || String.IsNullOrEmpty(Program.settings.GameDetails.SmapiVersion) || Program.settings.GameDetails.HasBadGameVersion() || Program.settings.GameDetails.HasSMAPIUpdated(SMAPI.GetVersion())) { var smapiLogPath = Path.Combine(Pathing.GetSmapiLogFolderPath(), "SMAPI-latest.txt"); + Program.helper.Log($"Checking for SMAPI-latest.txt at path: {Pathing.GetSmapiLogFolderPath()}"); if (File.Exists(smapiLogPath)) { // Parse SMAPI's log From b1322082ce58a40d6f93a02a765d052a519be675 Mon Sep 17 00:00:00 2001 From: Floogen <31755155+Floogen@users.noreply.github.com> Date: Thu, 1 Jan 2026 19:57:31 -0600 Subject: [PATCH 2/4] Handled breaking change with .NET 8 for Environment.SpecialFolder See: https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/8.0/getfolderpath-unix#macos --- Stardrop/Utilities/Pathing.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Stardrop/Utilities/Pathing.cs b/Stardrop/Utilities/Pathing.cs index 0bc162c..8d9bde1 100644 --- a/Stardrop/Utilities/Pathing.cs +++ b/Stardrop/Utilities/Pathing.cs @@ -63,6 +63,11 @@ public static string GetSmapiPath() internal static string GetSmapiLogFolderPath() { + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + return Path.Combine("~", ".config", "StardewValley", "ErrorLogs"); + } + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); } From 7b9b6a00dabd440bef2f28a5bb2ef50c1af4abe2 Mon Sep 17 00:00:00 2001 From: Floogen <31755155+Floogen@users.noreply.github.com> Date: Thu, 1 Jan 2026 20:08:28 -0600 Subject: [PATCH 3/4] Using $HOME for GetSmapiLogFolderPath with macOS --- Stardrop/Utilities/Pathing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stardrop/Utilities/Pathing.cs b/Stardrop/Utilities/Pathing.cs index 8d9bde1..adfca43 100644 --- a/Stardrop/Utilities/Pathing.cs +++ b/Stardrop/Utilities/Pathing.cs @@ -65,7 +65,7 @@ internal static string GetSmapiLogFolderPath() { if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { - return Path.Combine("~", ".config", "StardewValley", "ErrorLogs"); + return Path.Combine("$HOME", ".config", "StardewValley", "ErrorLogs"); } return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); From d2710bb18b1ebb20ee185912d628287d6d46fbcb Mon Sep 17 00:00:00 2001 From: Floogen <31755155+Floogen@users.noreply.github.com> Date: Thu, 1 Jan 2026 20:32:38 -0600 Subject: [PATCH 4/4] Utilizing Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) for macOS --- Stardrop/Utilities/Pathing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stardrop/Utilities/Pathing.cs b/Stardrop/Utilities/Pathing.cs index adfca43..0b6daed 100644 --- a/Stardrop/Utilities/Pathing.cs +++ b/Stardrop/Utilities/Pathing.cs @@ -65,7 +65,7 @@ internal static string GetSmapiLogFolderPath() { if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { - return Path.Combine("$HOME", ".config", "StardewValley", "ErrorLogs"); + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "StardewValley", "ErrorLogs"); } return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs");