public void LoadAssetBundle(CResourcePackerInfo resourcePackerInfo) { if (((resourcePackerInfo != null) && resourcePackerInfo.m_isAssetBundle) && !resourcePackerInfo.IsAssetBundleLoaded()) { resourcePackerInfo.LoadAssetBundle(CFileManager.GetIFSExtractPath()); } }
public void LoadResourcePackerInfoSet() { if (this.m_resourcePackerInfoSet != null) { this.m_resourcePackerInfoSet.Dispose(); this.m_resourcePackerInfoSet = null; } string filePath = CFileManager.CombinePath(CFileManager.GetIFSExtractPath(), CResourcePackerInfoSet.s_resourcePackerInfoSetFileName); if (CFileManager.IsFileExist(filePath)) { byte[] data = CFileManager.ReadFile(filePath); int num = 0; this.m_resourcePackerInfoSet = new CResourcePackerInfoSet(); this.m_resourcePackerInfoSet.Read(data, ref num); CVersion.SetUsedResourceVersion(this.m_resourcePackerInfoSet.m_version); this.m_resourcePackerInfoSet.CreateResourceMap(); } }