wabbajack/Wabbajack.Lib/CerasConfig.cs

39 lines
1.9 KiB
C#
Raw Normal View History

2019-10-27 12:12:35 +00:00
using Ceras;
using Compression.BSA;
using Wabbajack.Common;
using Wabbajack.Lib.Downloaders;
2019-11-15 13:06:34 +00:00
using Wabbajack.VirtualFileSystem;
2019-10-27 12:12:35 +00:00
namespace Wabbajack.Lib
{
public class CerasConfig
{
2019-12-20 20:01:01 +00:00
public static readonly SerializerConfig Config;
static CerasConfig()
2019-10-27 12:12:35 +00:00
{
2019-12-20 20:01:01 +00:00
Config = new SerializerConfig
2019-10-27 12:12:35 +00:00
{
2019-12-20 20:01:01 +00:00
KnownTypes =
{
typeof(ModList), typeof(Game), typeof(Directive), typeof(IgnoredDirectly),
typeof(NoMatch), typeof(InlineFile), typeof(PropertyType), typeof(CleanedESM),
typeof(RemappedInlineFile), typeof(FromArchive), typeof(CreateBSA), typeof(PatchedFromArchive),
typeof(SourcePatch), typeof(MergedPatch), typeof(Archive), typeof(IndexedArchive), typeof(IndexedEntry),
typeof(IndexedArchiveEntry), typeof(BSAIndexedEntry), typeof(VirtualFile),
typeof(ArchiveStateObject), typeof(FileStateObject), typeof(IDownloader),
typeof(IUrlDownloader), typeof(AbstractDownloadState), typeof(ManualDownloader.State),
typeof(DropboxDownloader), typeof(GoogleDriveDownloader.State), typeof(HTTPDownloader.State),
typeof(MegaDownloader.State), typeof(ModDBDownloader.State), typeof(NexusDownloader.State),
typeof(BSAStateObject), typeof(BSAFileStateObject), typeof(BA2StateObject), typeof(BA2DX10EntryState),
typeof(BA2FileEntryState), typeof(MediaFireDownloader.State), typeof(ArchiveMeta),
typeof(PropertyFile), typeof(SteamMeta), typeof(SteamWorkshopDownloader), typeof(SteamWorkshopDownloader.State),
typeof(LoversLabDownloader.State), typeof(GameFileSourceDownloader.State)
2019-12-20 20:01:01 +00:00
},
};
Config.VersionTolerance.Mode = VersionToleranceMode.Standard;
}
2019-10-27 12:12:35 +00:00
}
}