mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
cxd blank sav: set default region for encoding
This commit is contained in:
parent
d9504cd947
commit
f35a8d8496
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue