Преглед на файлове

Set MonoMod platform before using it

ghorsington преди 3 години
родител
ревизия
b772bb6ef5
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      BepInEx.IL2CPP/DoorstopEntrypoint.cs

+ 2 - 1
BepInEx.IL2CPP/DoorstopEntrypoint.cs

@@ -12,13 +12,14 @@ namespace BepInEx.IL2CPP
 		{
 			string bepinPath = Path.GetDirectoryName(Path.GetDirectoryName(Path.GetFullPath(EnvVars.DOORSTOP_INVOKE_DLL_PATH)));
 
+			PlatformUtils.SetPlatform();
+			
 			Paths.SetExecutablePath(EnvVars.DOORSTOP_PROCESS_PATH, bepinPath);
 			Preloader.IL2CPPUnhollowedPath = Path.Combine(Paths.BepInExRootPath, "unhollowed");
 
 			AppDomain.CurrentDomain.AssemblyResolve += LocalResolve;
 			AppDomain.CurrentDomain.AssemblyResolve -= DoorstopEntrypoint.ResolveCurrentDirectory;
 
-			PlatformUtils.SetPlatform();
 
 			Preloader.Run();
 		}