public void LoadCache(string folder) { DataFile = new FileStream(folder + "main_file_cache.dat", FileMode.Open); for (int i = 0; i < 5; i++) { Archives[i] = new Archive(ArchiveNames[i], DataFile, new FileStream(folder + "main_file_cache.idx" + i, FileMode.Open)); Archives[i].ArchiveIndex = i; } }
public Cache() { Archives = new Archive[5]; SubArchives = new List<SubArchive>(); }