예제 #1
0
 private static void LoadLocalMetaFile()
 {
     try
     {
         CacheManager._programAssetMetaPath = LocalDirectoryHelper.GetProgramAssetMetaPath();
         if (File.Exists(CacheManager._programAssetMetaPath))
         {
             string text = File.ReadAllText(CacheManager._programAssetMetaPath);
             if (!string.IsNullOrEmpty(text))
             {
                 CacheManager._cachedProgramAssetInfoDict = (Json.Deserialize(text) as Dictionary <string, object>);
             }
             if (CacheManager._cachedProgramAssetInfoDict == null)
             {
                 CacheManager._cachedProgramAssetInfoDict = new Dictionary <string, object>();
             }
         }
     }
     catch (Exception ex)
     {
         string text2 = "CachedFile Meta文件读取失败 " + ex.Message;
         Logger.LogError(text2);
         Pandora.Instance.ReportError(text2, 10217587);
     }
 }