Beispiel #1
0
        //キャッシュファイルテーブルを読み込み
        void ReadCacheTbl()
        {
#if !(UNITY_WEBPLAYER || UNITY_WEBGL)
            fileInfoTbl = new AssetFileInfoDictionary();
            if (!FileIOManger.ReadBinaryDecode(GetCacheTblPath(), fileInfoTbl.Read))
            {
                fileInfoTbl.Clear();
            }
#endif
        }
        //起動時初期化
        internal void BootInit(AssetFileManagerSettings settings, ConvertFileListManager convertFileListManager)
        {
#if !(UNITY_WEBPLAYER || UNITY_WEBGL)
            this.Clear();
            if (!AssetFileManager.DontUseCache)
            {
                if (!FileIOManger.ReadBinaryDecode(CacheTblPath, (reader) => Read(reader, settings, convertFileListManager)))
                {
                    this.Clear();
                }
            }
#endif
            if (AssetFileManager.isDebugBootDeleteChacheAll)
            {
                DeleteCacheFileAllSub();
            }
            else if (AssetFileManager.isDebugBootDeleteChacheTextAndBinary)
            {
                DeleteCacheFileAllSub(AssetFileType.Text);
                DeleteCacheFileAllSub(AssetFileType.Bytes);
                DeleteCacheFileAllSub(AssetFileType.Csv);
            }
        }