internal IModuleDataExtractor Create(DowModuleFile file)
        {
            string folder = Path.Combine(filePathProvider.SoulstormLocation, file.ModFolder);

            if (file.IsVanilla)
            {
                string cacheFolder = Path.Combine(filePathProvider.AppDataLocation, file.ModFolder);
                return(new ModuleArchiveExtractor(Path.Combine(folder, $"{file.ModFolder}Data.sga"), cacheFolder));
            }

            return(new ModuleFileSystemExtractor(folder));
        }
Пример #2
0
 private static DowModuleFile CreateAdditionsModule(DowModuleFile mod)
 {
     return(new DowModuleFile()
     {
         Description = "Custom uncompressed data found in the base game (Map Addons, etc.)",
         DllName = mod.DllName,
         ModFolder = mod.ModFolder,
         ModVersion = mod.ModVersion,
         Playable = mod.Playable,
         RequiredMods = mod.RequiredMods,
         UIName = $"{mod.UIName} - Additions",
         IsVanilla = false
     });
 }