Skip to content

Commit

Permalink
- "See Log" button updated to take into account the new logs generate…
Browse files Browse the repository at this point in the history
…d by `MirrorInternalLogs`
  • Loading branch information
toebeann committed Aug 4, 2020
1 parent 7ef0a21 commit 997663a
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 997663a

Please sign in to comment.