Пример #1
0
 public void LoadAssetBundle(CResourcePackerInfo resourcePackerInfo)
 {
     if (((resourcePackerInfo != null) && resourcePackerInfo.m_isAssetBundle) && !resourcePackerInfo.IsAssetBundleLoaded())
     {
         resourcePackerInfo.LoadAssetBundle(CFileManager.GetIFSExtractPath());
     }
 }
Пример #2
0
    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();
        }
    }