File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11using System ;
2- using System . Linq ;
32using System . Reflection ;
43using GameFrameX . Runtime ;
4+ #if ENABLE_GAME_FRAME_X_HYBRID_CLR
5+ using System . Linq ;
56using HybridCLR ;
7+ #endif
68
79namespace Unity . Startup . Procedure
810{
@@ -27,8 +29,8 @@ public static async void StartHotfix()
2729 return ;
2830 }
2931
32+ #if ENABLE_GAME_FRAME_X_HYBRID_CLR
3033 Log . Info ( "开始加载AOT DLL" ) ;
31-
3234 var aotDlls = AOTGenericReferences . PatchedAOTAssemblyList . ToArray ( ) ;
3335 foreach ( var aotDll in aotDlls )
3436 {
@@ -37,8 +39,8 @@ public static async void StartHotfix()
3739 var aotBytes = assetHandle . GetAssetObject < UnityEngine . TextAsset > ( ) . bytes ;
3840 RuntimeApi . LoadMetadataForAOTAssembly ( aotBytes , HomologousImageMode . SuperSet ) ;
3941 }
40-
4142 Log . Info ( "结束加载AOT DLL" ) ;
43+ #endif
4244 Log . Info ( "开始加载Unity.Hotfix.dll" ) ;
4345 var assetHotfixDllPath = Utility . Asset . Path . GetCodePath ( HotfixName + Utility . Const . FileNameSuffix . DLL ) ;
4446 var assetHotfixDllOperationHandle = await GameApp . Asset . LoadAssetAsync < UnityEngine . Object > ( assetHotfixDllPath ) ;
Original file line number Diff line number Diff line change 3030 "precompiledReferences": [],
3131 "autoReferenced": true,
3232 "defineConstraints": [],
33- "versionDefines": [],
33+ "versionDefines": [
34+ {
35+ "name": "com.code-philosophy.hybridclr",
36+ "expression": "",
37+ "define": "ENABLE_GAME_FRAME_X_HYBRID_CLR"
38+ }
39+ ],
3440 "noEngineReferences": false
3541}
You can’t perform that action at this time.
0 commit comments