mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Building and loading modlist will now use new Ceras functions
This commit is contained in:
parent
56daeb069a
commit
d93fdf9b1f
@ -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);
|
||||
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user