Skip to content

Commit 018dd93

Browse files
authored
Moved screenshots to launcher dir (#1318)
1 parent 1fb81c3 commit 018dd93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NitroxPatcher/Patches/Persistent/ScreenshotManager_Initialise.Path.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.IO;
23
using System.Reflection;
34
using Harmony;
45

@@ -11,7 +12,7 @@ public class ScreenshotManager_Initialise : NitroxPatch, IPersistentPatch
1112

1213
public static void Prefix(ScreenshotManager __instance, ref string _savePath)
1314
{
14-
_savePath = "Nitrox Screenshots/";
15+
_savePath = Path.GetFullPath(Environment.GetEnvironmentVariable("NITROX_LAUNCHER_PATH") ?? ".");
1516
}
1617

1718
public override void Patch(HarmonyInstance harmony)

0 commit comments

Comments
 (0)