Skip to content

Commit ee94989

Browse files
fixed fatal reg sequence bug
1 parent 074b26f commit ee94989

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

UnityProject/Assets/Dependencies/JEngine/Core/ILRuntimeHelper/RegisterClrBind.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

UnityProject/Assets/Dependencies/JEngine/Core/ILRuntimeHelper/RegisterClrBind.cs.meta

Lines changed: 0 additions & 3 deletions
This file was deleted.

UnityProject/Assets/Scripts/Core/LoadILRuntime.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ public static void InitializeILRuntime(AppDomain appdomain)
3535
}
3636
}
3737
}
38+
//CLR绑定(有再去绑定),这个要在最后
39+
Type t = Type.GetType("ILRuntime.Runtime.Generated.CLRBindings");
40+
if (t != null)
41+
{
42+
t.GetMethod("Initialize")?.Invoke(null, new object[]
43+
{
44+
appdomain
45+
});
46+
}
3847
#endif
3948
}
4049
}

0 commit comments

Comments
 (0)