public void Load() { Log.Info("Indexing files in default archives"); using (var progress = Display.StartProgress("Indexing default archives")) { long total = GetDefaultArchives().Count(); long current = 0; foreach (string filename in GetDefaultArchives()) { Log.Fine("Indexing files in archive: " + filename); archives.AddArchive(filename); progress.Update(current++, total, filename); } } QuerySupportedTypes(); Log.Info("Indexing forms in active plugins"); var sw2 = new Stopwatch(); sw2.Start(); foreach (var plugin in GetPluginListProvider().Plugins) { if (!ignorePlugins.Contains(plugin.Filename)) { LoadPlugin(plugin.Filename); } } sw2.Stop(); Log.Fine("Indexing forms in all plugins finished in {0}ms", sw2.ElapsedMilliseconds); //if (detectedUnsupportedFormKinds.Count > 0) //{ // Log.Warning("Detected {0} unsupported form types", detectedUnsupportedFormKinds.Count); // Log.Warning("Unsupported form types are: {0}", string.Join(",", detectedUnsupportedFormKinds)); // Log.Warning("Note: Forms of unsupported type can be referenced but cannot be edited or copied"); //} }
public void RegisterGamefiles() { FileInfo[] archiveFiles = null; DirectoryInfo archiveDir = new DirectoryInfo(Path.Combine(this.gamePath.FullName, "../../archive/pc/content")); archiveFiles = archiveDir.GetFiles("*.archive"); foreach (FileInfo fi in archiveFiles) { Console.WriteLine(String.Format("Adding archive ({0})...", fi.Name)); ArchiveManager.AddArchive(fi); } }