/// <summary> /// Make a dictionary with all the files in the VFS /// </summary> Dictionary <string, LazyFileData> LoadArchives(IEnumerable <string> archives) { var fileMap = new Dictionary <string, LazyFileData>(); foreach (var archiveName in archives) { var archive = Archive.Open(archiveName); var fileName = archiveName.ToLower().Replace("\\", "/"); var fileData = new LazyFileData(archiveName, archive); fileMap.Remove(fileName); fileMap[fileName] = fileData; } return(fileMap); }
/// <summary> /// Make a dictionary with all the files in the VFS /// </summary> Dictionary<string, LazyFileData> LoadArchives(IEnumerable<string> archives) { var fileMap = new Dictionary<string, LazyFileData>(); foreach (var archiveName in archives) { var archive = Archive.Open(archiveName); var fileName = archiveName.ToLower().Replace("\\", "/"); var fileData = new LazyFileData(archiveName, archive); fileMap.Remove(fileName); fileMap[fileName] = fileData; } return fileMap; }