Skip to content

Commit

Permalink
[修复]1. 修复调试符号表文件的删除
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Dec 18, 2024
1 parent f0c0618 commit 43458b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Assets/Scripts/Framework/Procedure/HotfixHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ public static async void StartHotfix()
var assetHotfixDllPath = Utility.Asset.Path.GetCodePath(HotfixName + Utility.Const.FileNameSuffix.DLL);
var assetHotfixDllOperationHandle = await GameApp.Asset.LoadAssetAsync<UnityEngine.Object>(assetHotfixDllPath);
var assemblyDataHotfixDll = assetHotfixDllOperationHandle.GetAssetObject<UnityEngine.TextAsset>().bytes;
Log.Info("开始加载Unity.Hotfix.pdb");
var assetHotfixPdbPath = Utility.Asset.Path.GetCodePath(HotfixName + Utility.Const.FileNameSuffix.PDB);
var assetHotfixPdbOperationHandle = await GameApp.Asset.LoadAssetAsync<UnityEngine.Object>(assetHotfixPdbPath);
var assemblyDataHotfixPdb = assetHotfixPdbOperationHandle.GetAssetObject<UnityEngine.TextAsset>().bytes;
Log.Info("开始加载程序集Hotfix");
var hotfixAssembly = Assembly.Load(assemblyDataHotfixDll, assemblyDataHotfixPdb);
var hotfixAssembly = Assembly.Load(assemblyDataHotfixDll, null);
Run(hotfixAssembly);
}

Expand Down

0 comments on commit 43458b0

Please sign in to comment.