Skip to content

Commit 0700d4a

Browse files
authored
Merge pull request #166 from SubnauticaModding/UpdateLogPath
Update log path for "See Log" button
2 parents 7ef0a21 + 997663a commit 0700d4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

QModManager/Utility/Dialog.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ internal class Button
2525
internal static readonly Button Disabled = new Button();
2626
internal static readonly Button SeeLog = new Button("See Log", () =>
2727
{
28-
string logPath = Application.consoleLogPath;
28+
string gameSuffix = "Subnautica";
29+
if (Patcher.CurrentlyRunningGame == QModGame.BelowZero)
30+
gameSuffix += "Zero";
31+
32+
string logPath = Path.Combine(Environment.CurrentDirectory, $"qmodmanager_log-{gameSuffix}.txt");
2933

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

0 commit comments

Comments
 (0)