From 188fdc9430e63b3f9bc544a16bd7c9c6f24ff301 Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 29 Nov 2023 16:08:22 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D2019=20Mac=20Standalo?= =?UTF-8?q?ne=20=E6=B2=A1=E6=9C=89=E6=AD=A3=E7=A1=AE=20PatchScriptingAssem?= =?UTF-8?q?blyList=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Installer/InstallerController.cs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Editor/Installer/InstallerController.cs b/Editor/Installer/InstallerController.cs index 4065ce9..9ff7315 100644 --- a/Editor/Installer/InstallerController.cs +++ b/Editor/Installer/InstallerController.cs @@ -191,17 +191,11 @@ namespace HybridCLR.Editor.Installer private string GetUnityIl2CppDllInstallLocation() { - string path1 = $"{SettingsUtil.LocalIl2CppDir}/build/deploy/net471/Unity.IL2CPP.dll"; - if (File.Exists(path1)) - { - return path1; - } - string path2 = $"{SettingsUtil.LocalIl2CppDir}/build/deploy/il2cppcore/Unity.IL2CPP.dll"; - if (File.Exists(path2)) - { - return path2; - } - throw new Exception($"Unity.IL2CPP.dll not found"); +#if UNITY_EDITOR_WIN + return $"{SettingsUtil.LocalIl2CppDir}/build/deploy/net471/Unity.IL2CPP.dll"; +#else + return $"{SettingsUtil.LocalIl2CppDir}/build/deploy/il2cppcore/Unity.IL2CPP.dll"; +#endif } private string GetUnityIl2CppDllModifiedPath(string curVersionStr)