cxd blank sav: set default region for encoding

This commit is contained in:
Kurt 2024-07-21 01:50:08 -05:00
parent d9504cd947
commit f35a8d8496
2 changed files with 4 additions and 2 deletions

View file

@ -42,6 +42,7 @@ public sealed class SAV3Colosseum : SaveFile, IGCSaveFile, IBoxDetailName, IDayc
Japanese = japanese;
Raw = new byte[ColoCrypto.SLOT_SIZE];
CurrentRegion = OriginalRegion = japanese ? GCRegion.NTSC_J : GCRegion.NTSC_U;
StrategyMemo = Initialize();
ClearBoxes();
}

View file

@ -31,12 +31,13 @@ public sealed class SAV3XD : SaveFile, IGCSaveFile, IBoxDetailName, IDaycareStor
private readonly byte[] BAK;
private int DaycareOffset;
public SAV3XD() : base(SaveUtil.SIZE_G3XD)
public SAV3XD(bool japanese = false) : base(SaveUtil.SIZE_G3XD)
{
BAK = [];
CurrentRegion = OriginalRegion = japanese ? GCRegion.NTSC_J : GCRegion.NTSC_U;
// create fake objects
StrategyMemo = new StrategyMemo();
ShadowInfo = new ShadowInfoTableXD(false);
ShadowInfo = new ShadowInfoTableXD(japanese);
Config = 0xA8;
Trainer1 = 0xCCD8;
Party = 0xCD08;