Compare commits

...

7 Commits

66 changed files with 144 additions and 106 deletions
+8 -8
View File
@@ -2,23 +2,23 @@
"versions": [
{
"unity_version":"2022.3.x",
"hybridclr" : { "tag":"v9.0.0"},
"il2cpp_plus": { "tag":"v2022.3.x-9.0.0"}
"hybridclr" : { "tag":"v9.0.1"},
"il2cpp_plus": { "tag":"v2022.3.x-9.0.1"}
},
{
"unity_version":"2022.3.x-tuanjie",
"hybridclr" : { "tag":"v9.0.0"},
"il2cpp_plus": { "tag":"v2022.3.x-tuanjie-9.0.0"}
"hybridclr" : { "tag":"v9.0.1"},
"il2cpp_plus": { "tag":"v2022.3.x-tuanjie-9.0.1"}
},
{
"unity_version":"6000.0.x",
"hybridclr" : { "tag":"v9.0.0"},
"il2cpp_plus": { "tag":"v6000.0.x-9.0.0"}
"hybridclr" : { "tag":"v9.0.1"},
"il2cpp_plus": { "tag":"v6000.0.x-9.0.1"}
},
{
"unity_version":"6000.3.x",
"hybridclr" : { "tag":"v6000.3.x-9.0.0"},
"il2cpp_plus": { "tag":"v6000.3.x-9.0.0"}
"hybridclr" : { "tag":"v6000.3.x-9.0.1"},
"il2cpp_plus": { "tag":"v6000.3.x-9.0.1"}
}
]
}
+1 -1
View File
@@ -1,4 +1,4 @@
using DotNetDetour;
using DotNetDetour;
using System;
namespace MonoHook
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
#if UNITY_EDITOR
+1 -1
View File
@@ -1,4 +1,4 @@
#if !(UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX)
#if !(UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX)
using System;
using System.Collections.Generic;
using System.Reflection;
+1 -1
View File
@@ -1,4 +1,4 @@
#if (UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX)
#if (UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX)
using System;
using System.Collections.Generic;
using System.Reflection;
+1 -1
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.InteropServices;
namespace DotNetDetour
@@ -18,19 +18,30 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#if UNITY_2022 && (UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS)
using HybridCLR.Settings;
using HybridCLR.Utils;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Callbacks;
using UnityEngine;
namespace HybridCLR.BuildProcessors
{
public static class AddLil2cppSourceCodeToXcodeproj2022OrNewer
{
#if UNITY_2022 && (UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS)
[PostProcessBuild]
#endif
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject)
{
if (!HybridCLRSettings.Instance.enable)
if (!HybridCLRSettings.instance.enable)
return;
string pbxprojFile = BuildProcessorUtil.GetXcodeProjectFile(pathToBuiltProject);
string pbxprojFile = XcodeProjectFileUtil.GetXcodeProjectFile(pathToBuiltProject);
RemoveExternalLibil2cppOption(pbxprojFile);
CopyLibil2cppToXcodeProj(pathToBuiltProject);
}
@@ -84,9 +95,8 @@ namespace HybridCLR.BuildProcessors
{
string srcLibil2cppDir = $"{SettingsUtil.LocalIl2CppDir}/libil2cpp";
string destLibil2cppDir = $"{pathToBuiltProject}/Il2CppOutputProject/IL2CPP/libil2cpp";
BashUtil.RemoveDir(destLibil2cppDir);
BashUtil.CopyDir(srcLibil2cppDir, destLibil2cppDir, true);
DirectoryUtil.RemoveDir(destLibil2cppDir);
DirectoryUtil.CopyDir(srcLibil2cppDir, destLibil2cppDir, true);
}
}
}
#endif
}
@@ -18,17 +18,27 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#if UNITY_2023_1_OR_NEWER && (UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS)
using HybridCLR.Settings;
using HybridCLR.Utils;
using System.IO;
using System.Text;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Callbacks;
using UnityEngine;
namespace HybridCLR.BuildProcessors
{
public static class AddLil2cppSourceCodeToXcodeproj2023OrNewer
{
#if UNITY_2023_1_OR_NEWER && (UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS)
[PostProcessBuild]
#endif
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject)
{
if (!HybridCLRSettings.Instance.enable)
if (!HybridCLRSettings.instance.enable)
return;
CopyLibil2cppToXcodeProj(pathToBuiltProject);
}
@@ -37,9 +47,8 @@ namespace HybridCLR.BuildProcessors
{
string srcLibil2cppDir = $"{SettingsUtil.LocalIl2CppDir}/libil2cpp";
string destLibil2cppDir = $"{pathToBuiltProject}/Il2CppOutputProject/IL2CPP/libil2cpp";
BashUtil.RemoveDir(destLibil2cppDir);
BashUtil.CopyDir(srcLibil2cppDir, destLibil2cppDir, true);
DirectoryUtil.RemoveDir(destLibil2cppDir);
DirectoryUtil.CopyDir(srcLibil2cppDir, destLibil2cppDir, true);
}
}
}
#endif
}
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.Settings;
using HybridCLR.Settings;
using System;
using System.IO;
using System.Text.RegularExpressions;
@@ -35,7 +35,6 @@ namespace HybridCLR.BuildProcessors
public int callbackOrder => 0;
#if UNITY_2021_1_OR_NEWER
public static string GetStripAssembliesDir2021(BuildTarget target)
{
string projectDir = SettingsUtil.ProjectDir;
@@ -89,21 +88,6 @@ namespace HybridCLR.BuildProcessors
default: return "";
}
}
#else
private string GetStripAssembliesDir2020(BuildTarget target)
{
string subPath = target == BuildTarget.Android ?
"assets/bin/Data/Managed" :
"Data/Managed/";
return $"{SettingsUtil.ProjectDir}/Temp/StagingArea/{subPath}";
}
public void OnBeforeConvertRun(BuildReport report, Il2CppBuildPipelineData data)
{
BuildTarget target = report.summary.platform;
CopyStripDlls(GetStripAssembliesDir2020(target), target);
}
#endif
public static void CopyStripDlls(string srcStripDllPath, BuildTarget target)
{
@@ -128,14 +112,12 @@ namespace HybridCLR.BuildProcessors
public void OnPostprocessBuild(BuildReport report)
{
#if UNITY_2021_1_OR_NEWER
BuildTarget target = report.summary.platform;
string srcStripDllPath = GetStripAssembliesDir2021(target);
if (!string.IsNullOrEmpty(srcStripDllPath) && Directory.Exists(srcStripDllPath))
{
CopyStripDlls(srcStripDllPath, target);
}
#endif
}
public void OnPreprocessBuild(BuildReport report)
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using HybridCLR.Utils;
using System;
using System.Collections.Generic;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using MonoHook;
using System;
using System.Collections.Generic;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using MonoHook;
using System;
using System.Reflection;
@@ -28,7 +28,6 @@ using UnityEngine;
namespace HybridCLR.BuildProcessors.Hooks
{
#if UNITY_2022 || UNITY_2023_1_OR_NEWER
[InitializeOnLoad]
public class GetIl2CppFolderHook
{
@@ -68,5 +67,4 @@ namespace HybridCLR.BuildProcessors.Hooks
return null;
}
}
#endif
}
@@ -18,9 +18,16 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR.BuildProcessors.Hooks
using MonoHook;
using System;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using UnityEditor;
using UnityEngine;
namespace HybridCLR.BuildProcessors.Hooks
{
#if UNITY_2021_1_OR_NEWER && (UNITY_WEBGL || UNITY_WEIXINMINIGAME)
[InitializeOnLoad]
public class PatchScriptingAssembliesJsonHook
{
@@ -36,8 +43,10 @@
MethodInfo miReplacement = new Func<string>(BuildMainWindowTitle).Method;
MethodInfo miProxy = new Func<string>(BuildMainWindowTitleProxy).Method;
#if UNITY_2021_1_OR_NEWER && (UNITY_WEBGL || UNITY_WEIXINMINIGAME)
_hook = new MethodHook(miTarget, miReplacement, miProxy);
_hook.Install();
#endif
}
}
@@ -78,5 +87,4 @@
return string.Empty;
}
}
#endif
}
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System.IO;
using System.IO;
using UnityEditor.Android;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System;
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using dnlib.DotNet.Writer;
using System.IO;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using HybridCLR.CppCodeGen;
using HybridCLR.Meta;
using System;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Meta;
using System.Collections.Generic;
using System.Linq;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Meta;
using HybridCLR.Utils;
using System.Collections.Generic;
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2026 Code Philosophy
// Copyright 2026 Code Philosophy
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.CppCodeGen;
using HybridCLR.CppCodeGen;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Mod;
using System;
using System.Collections.Generic;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.CppCodeGen;
using HybridCLR.CppCodeGen;
using System;
using System.Collections.Generic;
using System.IO;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
namespace HybridCLR.CodeGen.MethodBridge
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Mod;
using System.Collections.Generic;
using UnityEngine;
+2 -2
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.CppCodeGen;
using HybridCLR.Meta;
using HybridCLR.Utils;
@@ -843,7 +843,7 @@ namespace HybridCLR.CodeGen.MethodBridge
private void CollectStructDefs(List<MethodSig> methods, HashSet<TypeInfo> structTypes)
{
ICorLibTypes corLibTypes = _genericMethods[0].Method.Module.CorLibTypes;
ICorLibTypes corLibTypes = _genericMethods.Count > 0 ? _genericMethods[0].Method.Module.CorLibTypes : null;
foreach (var method in methods)
{
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Meta;
using HybridCLR.Utils;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Mod;
using HybridCLR.Utils;
using System.Collections.Generic;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.CodeGen.AOT;
using HybridCLR.CodeGen.AOT;
using HybridCLR.Meta;
using HybridCLR.Utils;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System.IO;
using System.IO;
using UnityEditor;
using UnityEditor.Build.Player;
using UnityEngine;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.CodeGen.Il2CppDef;
using HybridCLR.CodeGen.Il2CppDef;
using UnityEditor;
using UnityEngine;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using HybridCLR.CodeGen.Link;
using HybridCLR.Utils;
using System.Collections.Generic;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.Meta;
using HybridCLR.Meta;
using HybridCLR.CodeGen.MethodBridge;
using HybridCLR.Mod;
using HybridCLR.Utils;
@@ -55,6 +55,12 @@ namespace HybridCLR.Commands
GenerateMethodBridgeAndReversePInvokeWrapper(target);
}
public static void GenerateEmptyMethodBridgeAndReversePInvokeWrapper(BuildTarget target)
{
string outputFile = $"{SettingsUtil.GeneratedCppDir}/MethodBridge.inc";
GenerateMethodBridgeCppFile(new List<GenericMethod>(), new List<RawMonoPInvokeCallbackMethodInfo>(), new List<CallNativeMethodSignatureInfo>(), outputFile);
}
public static void GenerateMethodBridgeAndReversePInvokeWrapper(BuildTarget target)
{
string aotDllDir = SettingsUtil.GetAssembliesPostIl2CppStripDir(target);
+6 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using UnityEditor;
using UnityEditor;
using UnityEditor.Build;
namespace HybridCLR.Commands
@@ -43,6 +43,11 @@ namespace HybridCLR.Commands
// These generation depend on HotUpdateDlls
LinkGeneratorCommand.GenerateLinkXml(target);
// Because some build targets will link the generated AOT dll before generating method bridge,
// so we need to generate an empty method bridge and reverse PInvoke wrapper first
// so that the generated AOT dll can be linked successfully
MethodBridgeGeneratorCommand.GenerateEmptyMethodBridgeAndReversePInvokeWrapper(target);
// Generate stripped aot dll
StripAOTDllCommand.GenerateStripedAOTDlls(target);
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.BuildProcessors;
using HybridCLR.BuildProcessors;
using HybridCLR.Utils;
using System;
using System.Linq;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Mod;
using System.Collections.Generic;
using System.IO;
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Mod;
using System.Collections.Generic;
using System.Linq;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using System;
using System.Collections.Generic;
using System.Linq;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Utils;
using System.Collections.Generic;
using System.Linq;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Utils;
using System;
using System.Collections.Generic;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using System;
using System.Collections.Generic;
using System.Text;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR.Meta
namespace HybridCLR.Meta
{
public class ParamInfo
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR.Meta
namespace HybridCLR.Meta
{
public enum ParamOrReturnType
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using System;
using System.Collections.Generic;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using System;
namespace HybridCLR.Meta
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR.Mod
namespace HybridCLR.Mod
{
public class AssemblyCache : AssemblyCacheBase
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Utils;
using System.Collections.Generic;
using System.IO;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System;
using System;
namespace HybridCLR.Mod
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR.Mod
namespace HybridCLR.Mod
{
public class CombinedAssemblyResolver : AssemblyResolverBase
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR.Mod
namespace HybridCLR.Mod
{
public interface IAssemblyResolver
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System.IO;
using System.IO;
using UnityEngine;
namespace HybridCLR.Mod
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System.Diagnostics;
using System.Diagnostics;
using System.Linq;
namespace HybridCLR.Installer
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System;
using System;
using System.IO;
using System.Threading;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using System.Collections.Generic;
namespace HybridCLR
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using dnlib.DotNet;
using dnlib.DotNet;
using HybridCLR.Meta;
using HybridCLR.Mod;
using HybridCLR.Settings;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using HybridCLR.Settings;
using HybridCLR.Settings;
using System;
using System.Collections.Generic;
using System.IO;
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System.IO;
using System.IO;
using UnityEditor.Build;
namespace HybridCLR.Utils
+21 -1
View File
@@ -1,12 +1,32 @@
# ReleaseLog
## 9.0.2
Release Data: 2026-10-12.
### Editor
- fix: generate an empty method bridge and reverse PInvoke wrapper before generating aot dlls because some build targets will link the generated AOT dll
- fix: fix compile error of PatchScriptingAssembliesJsonHook.cs on WebGL or WeixinMiniGame
- fix: fix compile errors of AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs and AddLil2cppSourceCodeToXcodeproj2023OrNewer.cs on iOS-like build target
- fix: remove UTF-8 BOM from C# source files
## 9.0.1
Release Data: 2026-10-09.
### Runtime
- fix: fix TransformContext incorrectly referencing the removed HYBRIDCLR_UNITY_2021_OR_NEW macro. When a function called by the call instruction is a full-generic-sharing function, it could be converted to a CallCommonXXX instruction while the method's methodPointerCallByInterp field is nullptr, causing a crash during CallCommonXXX execution.
- fix: fix newMethod->has_full_generic_sharing_signature being erroneously set to hasFullGenericSharingSignature unconditionally. It should only be set for AOT functions; interpreter functions should always have this value set to false.
## 9.0.0
Release Data: 2026-10-08.
### Runtime
- remove: remove support for unity 2019/2022/2021
- remove: remove support for unity 2019/2020/2021
- remove: remove support for extern method in interpreter dll
### Editor
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

namespace HybridCLR
{
public enum HomologousImageMode
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

namespace HybridCLR
{
public enum LoadImageErrorCode
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System;
using System;
namespace HybridCLR
{
+1 -1
View File
@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
namespace HybridCLR
namespace HybridCLR
{
public enum RuntimeOptionId
{
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "com.code-philosophy.hybridclr",
"version": "9.0.0",
"version": "9.0.2",
"displayName": "HybridCLR",
"description": "HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.",
"category": "Scripting",