Exemplo n.º 1
0
 public DatReader GetReaderForFile(uint object_id)
 {
     if (AllFiles.ContainsKey(object_id))
     {
         DatReader dr = new DatReader(FilePath, AllFiles[object_id].FileOffset, AllFiles[object_id].FileSize, SectorSize);
         return(dr);
     }
     else
     {
         log.InfoFormat("Unable to find object_id {0} in {1}", object_id.ToString(), Enum.GetName(typeof(DatDatabaseType), DatType));
         return(null);
     }
 }