Ejemplo n.º 1
0
 public static void GenerateCASCList()
 {
     Listfile.Load();
     foreach (var line in Listfile.FDIDToFilename)
     {
         if (Managers.ArchiveManager.FileExists(line.Key))
         {
             if (!EndsWithOneOf(line.Value, SkipList) && !IsWMOGroupFile(line.Value))
             {
                 MLF.Add(line.Value);
             }
         }
     }
     //Console.WriteLine("Display list generated");
 }
Ejemplo n.º 2
0
        public Stream StreamForTableName(string tableName, string build)
        {
            if (Listfile.FilenameToFDID.Count == 0)
            {
                Listfile.Load();
            }

            if (Listfile.TryGetFileDataID("dbfilesclient/" + tableName + ".db2", out var fileDataID))
            {
                return(CASC.OpenFile(fileDataID));
            }
            else
            {
                throw new FileNotFoundException("DBC " + tableName + " not found in listfile, could not look up filedataid!");
            }
        }