소스 검색

Fix early preloader error logs not being written
Rebase of 70980bf

Bepis 4 년 전
부모
커밋
3b549327ba
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      BepInEx.Preloader.Unity/DoorstopEntrypoint.cs

+ 2 - 1
BepInEx.Preloader.Unity/DoorstopEntrypoint.cs

@@ -71,7 +71,8 @@ namespace BepInEx.Preloader.Unity
 			{
 				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));