/// <summary>
 /// 位置检查
 /// </summary>
 /// <returns></returns>
 protected override bool CheckLocation()
 {
     if (!base.CheckLocation())
     {
         bool outside = FileUtil.IsExistInIFSExtraFolder(Path);
         //内部资源都标记在外面
         for (int i = 0; i < Count; i++)
         {
             ResInfo r = Resources[i];
             r.Outside = outside;
         }
     }
     return(true);
 }
Esempio n. 2
0
        //判断
        public bool IsBinaryResourceExsitInPkg(string Path)
        {
            string      noExtPath = FileUtil.EraseExtension(Path);
            ResPackInfo packInfo  = GetResPackInfo(noExtPath);

            if (packInfo != null)
            {
                if (packInfo.GetPackType() == (byte)ResPackType.ResPackTypeBinary)
                {
                    string realPath = FileUtil.CombinePath(packInfo.Path, Path);

                    if (FileUtil.IsExistInIFSExtraFolder(realPath) || FileUtil.IsFileExistInStreamingAssets(realPath))
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }