Skip to content

Commit

Permalink
ILRuntime CLR绑定。
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolige945 committed Mar 5, 2019
1 parent 2622e38 commit 2501b36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Assets/Script/Main/MbILRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Generated;
using UnityEngine;

public class MbILRuntime : MonoBehaviour
Expand Down Expand Up @@ -40,20 +41,19 @@ void LoadHotFixAssembly()
{
AppDomain.LoadAssembly(fs, p, new ILRuntime.Mono.Cecil.Pdb.PdbReaderProvider());

AppDomain.Invoke("CsMain", "Launch", null, null);
InitializeILRuntime();

OnHotFixLoaded();
}
}

//InitializeILRuntime();

//OnHotFixLoaded();
}

//-------------------------------------------------------------------------
void InitializeILRuntime()
{
// 这里做一些ILRuntime的注册
LitJson.JsonMapper.RegisterILRuntimeCLRRedirection(AppDomain);
CLRBindings.Initialize(AppDomain);
}

//-------------------------------------------------------------------------
Expand Down

0 comments on commit 2501b36

Please sign in to comment.