cuinc
e48a7beb95
fix(MonoHook): arm64 下 target 与 replacement/proxy 相距超过 ±128MB 时 hook 失败或跳错地址 ( #71 )
...
- 实现 CodePatcher_arm64_far(LDR Xn, #8 ; BR Xn; .quad dst),超出 B 指令 ±128MB 范围时使用
- CodePatcher_arm64_near 的范围由约 256MB 改为 ±128MB,并检查 proxy 的距离
- MethodHook.CreateCodePatcher 计算距离时误用了 _proxyPtr,改为 _replacementPtr
2026-10-18 13:38:14 +08:00
walon
9b2cbbf1a7
fix: fix compile error on Unity 6000.3.x + macOS editor
2026-10-13 20:26:45 +08:00
walon
ab71cfa6cf
refactor: clean up codes
2026-10-13 20:26:33 +08:00
walon
635dc7dd1e
fix: generate an empty method bridge and reverse PInvoke wrapper before generating aot dlls because some build targets will link the generated AOT dll
2026-10-12 12:55:34 +08:00
walon
0762becc28
refactor: remove unused codes for Unity 2021 or lower versions
2026-10-12 12:53:35 +08:00
walon
52f07bc8b3
fix: fix compile error of PatchScriptingAssembliesJsonHook.cs on WebGL or WeixinMiniGame
2026-10-12 12:51:57 +08:00
walon
baa70f8eb9
fix: remove UTF-8 BOM from C# source files
...
Strip mid-file BOM left after copyright headers and convert remaining UTF-8-BOM files to UTF-8 without BOM.
2026-10-12 12:08:19 +08:00
walon
8d0476c2c9
fix: fix compile errors of AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs and AddLil2cppSourceCodeToXcodeproj2023OrNewer.cs on iOS-like build target
2026-10-12 12:07:04 +08:00
walon
44057b0107
refactor: remove support for unity 2019-2021. refactor generator.
2026-10-08 21:01:52 +08:00
walon
6ecc0a9728
refactor: InstallerController find max-lower version as best match version
2026-09-03 18:01:41 +08:00
walon
a93ca3dc27
fix: fix InstallerController install branch 6000.3.x on 6000.5.x incorrectly
2026-08-19 22:02:31 +08:00
walon
6e635f78bf
feat: installer support 6000.5.x
2026-08-18 12:19:53 +08:00
walon
f0be76c0ce
fix: correct conditional compilation macro for Windows standalone targeting
...
Fixes an issue where 'UNITY_STANDALONE_WIN' is incorrectly defined when
building or targeting Windows standalone from a non-Windows Unity Editor
(e.g., macOS/Linux). This caused the Editor to incorrectly hit the Windows
code path (kernel32.dll / VirtualProtect) instead of the POSIX one, leading
to compilation errors or runtime crashes during the build process.
2026-05-18 22:29:44 +08:00
walon
6a320c556f
[new] support BuildTarget GameCoreXboxOne and GameCoreXboxSeries.
2026-02-24 10:03:55 +08:00
walon
213d44bd12
[fix] fix deprecated warning of PlayerSettings.GetScriptingBackend(BuildTargetGroup) in Unity 6000
2025-12-14 13:18:57 +08:00
walon
c138a58c4d
[new] support 6000.3.x
2025-12-14 13:18:46 +08:00
walon
478caea644
[change] remove unused import
2025-11-03 09:59:52 +08:00
walon
2534dea381
[remove] remove unused ABIUtils.cs
2025-10-28 10:26:34 +08:00
walon
391cd04cdf
[fix] fix raising NullReferenceException in generating MethodBridge for MonoPInvokeCallbackAttribute while constructor arguments is empty.
2025-10-14 17:15:32 +08:00
walon
1934d90f27
[remove] remove unused ReversePInvokeWrap.meta
2025-09-03 09:35:55 +08:00
walon
814572e1a1
[fix] fix the bug that BashUtil.CopyDir calls UnityEditor.FileUtil.CopyFileOrDirectory failed when parent directory of dst does not exist.
2025-08-26 21:17:03 +08:00
walon
e36bbb9022
[fix] fixed PInvokeAnalyzer bug in computing PInvoke function calling conventions.
2025-08-25 19:23:29 +08:00
walon
d86572db37
[change] change domain hybridclr.doc.code-philosophy.com to www.hybridclr.cn
2025-08-20 12:44:19 +08:00
xiewen
b5944ea834
[change] BashUtil::CopyDir replaces CopyWithCheckLongFile with CopyUnityEditor.FileUtil.CopyFileOrDirectory
2025-08-20 12:44:17 +08:00
walon
7f158f814a
[fix] fix the issue that Texture Compression option in Build Settings was changed after running HybridCLR/Generate/All on Android platform
2025-07-04 17:17:44 +08:00
walon
ab41cd0144
[fix] fix the bug that not collect struct in calli and extern method signature in generating MethodBridge.
2025-06-30 12:12:02 +08:00
walon
c9ff293dfe
[change] changed from throw exception to logError when not supported pinvoke or reverse pinvoke method parameter type was found
2025-06-06 16:57:53 +08:00
walon
8e27e8d41b
[change] remove warning log when the result of resolving method is null in GenericMethod::ResolveMethod.
2025-05-29 17:04:10 +08:00
walon
c21dbcc60a
[change] Remove redundant buildOptions |= BuildOptions.CleanBuildCache; code since it's already added in the GetBuildPlayerOptions function.
2025-05-29 14:22:50 +08:00
walon
7f2fa52f37
[change] change visibility of LinkXmlWriter to public.
2025-05-22 19:55:36 +08:00
walon
da46e71534
[fix] fix bug of GenericArgumentContext that inflate ByRef and SZArray to Ptr.
2025-05-22 19:53:49 +08:00
walon
b301b44cd3
[refactor] move ReversePInvokeWrap/Analyzer.cs to MethodBridge/MonoPInvokeCallbackAnalyzer.cs
...
[change] validate unsupported parameter type(.e.g string) in MonoPInvokeCallback signature when generate MethodBridge file
2025-04-30 16:20:03 +08:00
walon
ddc3332958
[change] validate unsupported parameter type(.e.g string) in PInvoke signature when generate MethodBridge file
2025-04-30 16:11:41 +08:00
walon
52f25bdb2a
[change] AssemblyResolver also resolves *.dll.bytes files besides *.dll.
2025-04-30 15:33:46 +08:00
walon
31be818bb6
[fix] fix error of computing CallingConvention in MethodBridge/Generator::BuildCalliMethods
2025-04-30 15:30:03 +08:00
walon
213a11ff25
[new] generate Managed2NativeFunction for PInvoke method
2025-04-30 15:05:40 +08:00
walon
585be97be9
[change] change type of the first argument methodPointer of Managed2NativeFunctionPointer from const void* to Il2CppMethodPointer
2025-04-30 12:40:21 +08:00
walon
361873803f
[refactor] refactor code of settings.
2025-04-28 10:20:08 +08:00
walon
46f308ed5e
[opt] optimization unnecessary initialization of typeArgsStack and methodArgsStack of GenericArgumentContext
2025-04-25 22:02:54 +08:00
walon
34406b1c13
[change] the shared type of ElementType.FnPtr is changed from IntPtr to UIntPtr
2025-04-25 21:59:15 +08:00
walon
e44fa663db
[fix] fix bug of CompileDll(BuildTarget target) that use EditorUserBuildSettings.activeBuildTarget instead of target to call CompileDll
2025-04-12 14:21:35 +08:00
L0veTomori
3fe41a8cba
[opt] strip AOT assembly resources. ( #54 )
2025-04-03 10:48:40 +08:00
walon
8d1280a1bd
[fix] fixed the bug where BashUtil.RemoveDir failed to run under certain circumstances on macOS systems.
2025-03-14 08:59:11 +08:00
walon
4768c039d2
[fix] fixed hook failed in version below MacOS 11
2025-03-07 13:29:47 +08:00
walon
10dc749d7a
[change] CompileDllActiveBuildTarget and GenerateAll use EditorUserBuildSettings.development to compile hot update dll.
2025-03-05 16:14:08 +08:00
walon
0c5ef00c12
[remove] remove option HybridCLRSettings.enableStraceTraceInWebGLReleaseBuild
2025-03-05 15:59:37 +08:00
walon
1553582ec1
[remove] remove option HybridCLRSettings.enableProfilerInReleaseBuild
2025-03-05 15:58:11 +08:00
walon
355e24fbe8
[fix] fixed the bug in the MethodBridge generator where it incorrectly handle [StructLayout] and blittable types when generating code for struct classes.
2025-03-01 10:39:05 +08:00
walon
9e4946aa45
[new] add AssemblySorter to sort assemblies by reference order
2025-02-08 16:53:11 +08:00
walon
b8dd2be1e4
[revert] Revert "[new] support preserve UnityEngine core types when GenerateLinkXml"
...
This reverts commit 82163d2e50 .
2025-02-05 10:35:49 +08:00