少年修仙传客户端基础资源
lwb
2021-01-22 8153a3d3c3b1132fd36f453c57141074e1a41dfc
9527 ILruntiem
3个文件已修改
18 ■■■■■ 已修改文件
Assets/ILRuntime/Editor/ILRuntimeCLRBinding.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Generated/CLRBindings.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Src/ILRuntimeUtility.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/ILRuntime/Editor/ILRuntimeCLRBinding.cs
@@ -8,7 +8,7 @@
    {
        //用新的分析热更dll调用引用来生成绑定代码
        ILRuntime.Runtime.Enviorment.AppDomain domain = new ILRuntime.Runtime.Enviorment.AppDomain();
        using (System.IO.FileStream fs = new System.IO.FileStream("Assets/ResourcesOut/logic/LogicProject.bytes", System.IO.FileMode.Open, System.IO.FileAccess.Read))
        using (System.IO.FileStream fs = new System.IO.FileStream("Assets/ResourcesOut/logic/Logic.dll.bytes", System.IO.FileMode.Open, System.IO.FileAccess.Read))
        {
            domain.LoadAssembly(fs);
            //Crossbind Adapter is needed to generate the correct binding code
Assets/ILRuntime/Generated/CLRBindings.cs
@@ -13,11 +13,7 @@
        /// </summary>
        public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            System_Collections_Generic_List_1_Type_Binding.Register(app);
            System_Type_Binding.Register(app);
            Singleton_1_ModelCenter_Binding.Register(app);
            Snxxz_UI_ModelCenter_Binding.Register(app);
            Snxxz_UI_LoginModel_Binding.Register(app);
            UnityEngine_GameObject_Binding.Register(app);
        }
        /// <summary>
Assets/ILRuntime/Src/ILRuntimeUtility.cs
@@ -18,13 +18,13 @@
        var pdbPath = string.Empty;
        if (AssetSource.refdataFromEditor)
        {
            dllPath = ResourcesPath.ResourcesOutAssetPath + "logic/LogicProject.bytes";
            pdbPath = ResourcesPath.ResourcesOutAssetPath + "logic/LogicProject.pdb";
            dllPath = ResourcesPath.ResourcesOutAssetPath + "logic/Logic.dll.bytes";
            pdbPath = ResourcesPath.ResourcesOutAssetPath + "logic/Logic.pdb";
        }
        else
        {
            dllPath = AssetVersionUtility.GetAssetFilePath("logic/LogicProject.bytes");
            pdbPath = AssetVersionUtility.GetAssetFilePath("logic/LogicProject.pdb");
            dllPath = AssetVersionUtility.GetAssetFilePath("logic/Logic.dll.bytes");
            pdbPath = AssetVersionUtility.GetAssetFilePath("logic/Logic.pdb");
        }
        var fs = new FileStream(dllPath, FileMode.Open);
        var p = new FileStream(pdbPath, FileMode.Open);
@@ -33,7 +33,7 @@
    public void LaunchStart()
    {
        appdomain.Invoke("LogicProject.ILTest", "Test", null, null);
        appdomain.Invoke("GameLogicMgr", "Init", null, null);
    }
}