Building and loading modlist will now use new Ceras functions

This commit is contained in:
erri120 2019-10-26 21:46:52 +02:00
parent 56daeb069a
commit d93fdf9b1f
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
2 changed files with 5 additions and 3 deletions

View File

@ -304,7 +304,8 @@ namespace Wabbajack.Lib
{
Utils.Log($"Exporting Modlist to : {ModListOutputFile}");
ModList.ToJSON(Path.Combine(ModListOutputFolder, "modlist.json"));
//ModList.ToJSON(Path.Combine(ModListOutputFolder, "modlist.json"));
ModList.ToCERAS(Path.Combine(ModListOutputFolder, "modlist"));
if (File.Exists(ModListOutputFile))
File.Delete(ModListOutputFile);

View File

@ -84,9 +84,10 @@ namespace Wabbajack.Lib
using (var fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
using (var ar = new ZipArchive(fs, ZipArchiveMode.Read))
{
var entry = ar.GetEntry("modlist.json");
var entry = ar.GetEntry("modlist");
using (var e = entry.Open())
return e.FromJSON<ModList>();
//return e.FromJSON<ModList>();
return e.FromCERAS<ModList>();
}
}