[fix] 修复2019 Mac Standalone 没有正确 PatchScriptingAssemblyList的bug

main
walon 2023-11-29 16:08:22 +08:00 committed by walon
parent ff0f225423
commit 188fdc9430
1 changed files with 5 additions and 11 deletions

View File

@ -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)