mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix early preloader error logs not being written
This commit is contained in:
1 parent
acd0eb214f
commit
70980bf946
1 file changed
+2
-1
@@ -70,7 +70,8 @@ namespace BepInEx.Preloader
|
||||
{
|
||||
EnvVars.LoadVars();
|
||||
|
||||
silentExceptionLog = Path.Combine(EnvVars.DOORSTOP_PROCESS_PATH, silentExceptionLog);
|
||||
string gamePath = Path.GetDirectoryName(EnvVars.DOORSTOP_PROCESS_PATH) ?? ".";
|
||||
silentExceptionLog = Path.Combine(gamePath, silentExceptionLog);
|
||||
|
||||
// Get the path of this DLL via Doorstop env var because Assembly.Location mangles non-ASCII characters on some versions of Mono for unknown reasons
|
||||
preloaderPath = Path.GetDirectoryName(Path.GetFullPath(EnvVars.DOORSTOP_INVOKE_DLL_PATH));
|
||||
|
||||
Reference in new issue
Block a user