mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-24 23:27:14 -05:00
Allow importing old (x40) building list (not x46)
This commit is contained in:
parent
345f3c3f1b
commit
f0492f1dc1
|
|
@ -149,8 +149,9 @@ private void B_ImportAll_Click(object sender, EventArgs e)
|
|||
var path = ofd.FileName;
|
||||
var fi = new FileInfo(path);
|
||||
|
||||
const int expect = MainSaveOffsets.BuildingCount * Building.SIZE;
|
||||
if (fi.Length != expect)
|
||||
const int expect = Building.SIZE * MainSaveOffsets.BuildingCount; // 46
|
||||
const int oldSize = Building.SIZE * 40;
|
||||
if (fi.Length != expect && fi.Length != oldSize)
|
||||
{
|
||||
WinFormsUtil.Error($"Expected size (0x{expect:X}) != Input size (0x{fi.Length:X})", path);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user