check both sptLogger.json and sptLogger.Development.json when checking for the correct directory

This commit is contained in:
Cj
2025-06-16 00:55:02 -04:00
parent e273807d3e
commit 056de770a8
+1 -1
View File
@@ -168,7 +168,7 @@ public static class Program
var dirFiles = Directory.GetFiles(Directory.GetCurrentDirectory());
// This file is guaranteed to exist if ran from the correct location, even if the game does not exist here.
return dirFiles.Any(dirFile => dirFile.EndsWith("sptLogger.json"));
return dirFiles.Any(dirFile => dirFile.EndsWith("sptLogger.json") || dirFile.EndsWith("sptLogger.Development.json"));
}
[DllImport("kernel32.dll", SetLastError = true)]