Call slot compression

Doesn't work correctly (data shifted down still persists)
This commit is contained in:
Kurt
2018-11-14 22:20:59 -08:00
parent 1feecef874
commit 644fa4e929
2 changed files with 4 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ public int FollowerIndex
get => PokeListInfo[FOLLOW];
set
{
if ((ushort)value > 1000)
if ((ushort)value > 1000 && value != SLOT_EMPTY)
throw new ArgumentException(nameof(value));
PokeListInfo[FOLLOW] = (ushort)value;
}

View File

@@ -716,6 +716,9 @@ private static bool IsFolderPath(out string path)
public bool ExportSaveFile()
{
ValidateChildren();
bool reload = SAV is SAV7b b && b.FixPreWrite();
if (reload)
ReloadSlots();
return WinFormsUtil.SaveSAVDialog(SAV, SAV.CurrentBox);
}