상속: IArchiveFileData
예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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;
 }