Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Stardrop/Utilities/Pathing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public static string GetSmapiPath()

internal static string GetSmapiLogFolderPath()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "StardewValley", "ErrorLogs");
}

return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs");
}

Expand Down
1 change: 1 addition & 0 deletions Stardrop/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,7 @@ private async Task CheckForModUpdates(List<Mod> 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
Expand Down
Loading