Skip to content

Commit d26816a

Browse files
author
DESKTOP-UBV38B7\codingworks
committed
合并master
1 parent 4ad2b5a commit d26816a

16 files changed

+39509
-7
lines changed

Assets/Game/HotFix.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Game/HotFix/HotFix.dll.bytes

13.5 KB
Binary file not shown.

Assets/Game/HotFix/HotFix.dll.bytes.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Game/HotFix/HotFix.pdb.bytes

47.5 KB
Binary file not shown.

Assets/Game/HotFix/HotFix.pdb.bytes.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Game/Scripts/Base/GameMode.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class GameMode : MonoBehaviour
2121
public static NodeManager Node;
2222
public static ResourceManager Resource;
2323
public static UIManager UI;
24+
public static HotFixManager HotFix;
2425

2526
/// <summary>
2627
/// 当前程序集
@@ -55,6 +56,7 @@ IEnumerator Start()
5556
Node = GameFrameworkMode.GetModule<NodeManager>();
5657
Resource = GameFrameworkMode.GetModule<ResourceManager>();
5758
UI = GameFrameworkMode.GetModule<UIManager>();
59+
HotFix = GameFrameworkMode.GetModule<HotFixManager>();
5860
#endregion
5961

6062
#region resource

Assets/ThirdParty/ILRuntime/Adapters/Editor/ILRuntimeCLRBinding.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void GenerateCLRBinding()
2424
types.Add(typeof(UnityEngine.Object));
2525
types.Add(typeof(Transform));
2626
types.Add(typeof(RectTransform));
27-
// types.Add(typeof(CLRBindingTestClass));
27+
// types.Add(typeof(CLRBindingTestClass));
2828
types.Add(typeof(Time));
2929
types.Add(typeof(Debug));
3030
//所有DLL内的类型的真实C#类型都是ILTypeInstance
@@ -39,7 +39,7 @@ static void GenerateCLRBindingByAnalysis()
3939
{
4040
//用新的分析热更dll调用引用来生成绑定代码
4141
ILRuntime.Runtime.Enviorment.AppDomain domain = new ILRuntime.Runtime.Enviorment.AppDomain();
42-
using (System.IO.FileStream fs = new System.IO.FileStream("Assets/VrCoreEntity/HotFix/HotFix.dll.bytes", System.IO.FileMode.Open, System.IO.FileAccess.Read))
42+
using (System.IO.FileStream fs = new System.IO.FileStream("Assets/StreamingAssets/HotFix_Project.dll", System.IO.FileMode.Open, System.IO.FileAccess.Read))
4343
{
4444
domain.LoadAssembly(fs);
4545
}
@@ -51,9 +51,9 @@ static void GenerateCLRBindingByAnalysis()
5151
static void InitILRuntime(ILRuntime.Runtime.Enviorment.AppDomain domain)
5252
{
5353
//这里需要注册所有热更DLL中用到的跨域继承Adapter,否则无法正确抓取引用
54-
//domain.RegisterCrossBindingAdaptor(new MonoBehaviourAdapter());
55-
//domain.RegisterCrossBindingAdaptor(new CoroutineAdapter());
56-
//domain.RegisterCrossBindingAdaptor(new InheritanceAdapter());
54+
// domain.RegisterCrossBindingAdaptor(new MonoBehaviourAdapter());
55+
// domain.RegisterCrossBindingAdaptor(new CoroutineAdapter());
56+
// domain.RegisterCrossBindingAdaptor(new InheritanceAdapter());
5757
}
5858
}
5959
#endif

Assets/ThirdParty/ILRuntime/Runtime/Enviorment/DelegateManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ public void RegisterFunctionDelegate<T1, T2, TResult>()
103103
functions.Add(node);
104104
RegisterDelegateConvertor<Func<T1, T2, TResult>>(defaultConverter);
105105
}
106-
107-
106+
108107
public void RegisterFunctionDelegate<T1, T2, T3, TResult>()
109108
{
110109
DelegateMapNode node = new Enviorment.DelegateManager.DelegateMapNode();
862 KB
Binary file not shown.

HotFix/HotFix/bin/Debug/HotFix.dll

13.5 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)