Skip to content

Commit

Permalink
Merge pull request #166 from SubnauticaModding/UpdateLogPath
Browse files Browse the repository at this point in the history
Update log path for "See Log" button
  • Loading branch information
toebeann authored Aug 4, 2020
2 parents 7ef0a21 + 997663a commit 0700d4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion QModManager/Utility/Dialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ internal class Button
internal static readonly Button Disabled = new Button();
internal static readonly Button SeeLog = new Button("See Log", () =>
{
string logPath = Application.consoleLogPath;
string gameSuffix = "Subnautica";
if (Patcher.CurrentlyRunningGame == QModGame.BelowZero)
gameSuffix += "Zero";

string logPath = Path.Combine(Environment.CurrentDirectory, $"qmodmanager_log-{gameSuffix}.txt");

Logger.Debug($"Opening log file located in: \"{logPath}\"");

Expand Down

0 comments on commit 0700d4a

Please sign in to comment.