public HotfixLoaderRequest Load(string rHotfixModuleName) { var rRequest = new HotfixLoaderRequest(rHotfixModuleName); rRequest.Start(Load_Async(rRequest)); return(rRequest); }
/// <summary> /// @TODO: 暂时使用读取本地文件的方式加载,后期做好完整的资源管理之后再来改为 /// Assetbundle加载和本地AssetDataBase加载来回切换。 /// </summary> public IEnumerator Load_Async(HotfixLoaderRequest rRequest) { string rDLLPath = mHotfixDllDir + rRequest.hotfixModuleName + ".dll"; string rPDBPath = mHotfixDllDir + rRequest.hotfixModuleName + ".pdb"; rRequest.dllBytes = File.ReadAllBytes(Path.GetFullPath(rDLLPath)); rRequest.pdbBytes = File.ReadAllBytes(Path.GetFullPath(rPDBPath)); yield return(0); }