Added backwards compatibility for modlist.json

This commit is contained in:
erri120 2019-10-27 14:59:23 +01:00
parent 5128884b74
commit 81ccec3144
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -85,8 +85,13 @@ namespace Wabbajack.Lib
using (var ar = new ZipArchive(fs, ZipArchiveMode.Read))
{
var entry = ar.GetEntry("modlist");
if (entry == null)
{
entry = ar.GetEntry("modlist.json");
using (var e = entry.Open())
return e.FromJSON<ModList>();
}
using (var e = entry.Open())
//return e.FromJSON<ModList>();
return e.FromCERAS<ModList>(ref CerasConfig.Config);
}
}