mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-29 14:38:53 -05:00
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:
@@ -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])
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user