Fix settings editor select battle revolution ver

Selecting Battle Revolution (recently added GameVersion for BatRev rentals) isn't filtered out of the GameVersion list, so when a user selects it, it will result in an unhandled switch case. Add it, and ensure the blank save loads without errors.
This commit is contained in:
Kurt
2025-09-05 23:28:54 -05:00
parent e1ca2ccdf8
commit 63dfdab57e
2 changed files with 7 additions and 1 deletions

View File

@@ -38,7 +38,12 @@ public int CurrentSlot
}
}
public SAV4BR() : base(SIZE_SLOT) => ClearBoxes();
public SAV4BR() : base(SIZE_SLOT)
{
Container = new byte[SIZE_HALF];
_currentSlot = 0;
ClearBoxes();
}
public SAV4BR(Memory<byte> data, bool decrypt = true) : base(new byte[SIZE_SLOT])
{

View File

@@ -70,6 +70,7 @@ public static class SaveFileTypeExtensions
GameVersion.D or GameVersion.P => DP,
GameVersion.Pt => Pt,
GameVersion.HG or GameVersion.SS => HGSS,
GameVersion.BATREV => BattleRevolution,
GameVersion.B or GameVersion.W => BW,
GameVersion.B2 or GameVersion.W2 => B2W2,
GameVersion.X or GameVersion.Y => XY,