mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Isolate japanese config from legality settings
Loading the save initially needs it specified by the program (per save file); when a save is cloned it needs to clone the Japanese parameter No functional change when used with PKHeX, but other applications of Core will now function correctly. (init 1 EN save, 1 JP save -> cloned EN became JP; this no longer happens) SAV3 is the only save object that needs the JP bool specified... I wonder if there's some way to reliably detect with just the SAV data...
This commit is contained in:
parent
ad962712f1
commit
552237166f
1 changed files with 1 additions and 2 deletions
|
@ -135,7 +135,6 @@ namespace PKHeX.Core
|
|||
LegalTMHMs = Legal.Pouch_TMHM_RS;
|
||||
LegalBerries = Legal.Pouch_Berries_RS;
|
||||
HeldItems = Legal.HeldItems_RS;
|
||||
Japanese = Legal.SavegameJapanese;
|
||||
|
||||
if (!Exportable)
|
||||
resetBoxes();
|
||||
|
@ -164,7 +163,7 @@ namespace PKHeX.Core
|
|||
public int getBlockOffset(int block) => BlockOfs[block];
|
||||
|
||||
// Configuration
|
||||
public override SaveFile Clone() { return new SAV3(Write(DSV:false), Version); }
|
||||
public override SaveFile Clone() { return new SAV3(Write(DSV:false), Version) {Japanese = Japanese}; }
|
||||
public override bool IndeterminateGame => Version == GameVersion.Unknown;
|
||||
public override bool IndeterminateLanguage => true; // Unknown JP/International
|
||||
public override bool IndeterminateSubVersion => Version == GameVersion.FRLG;
|
||||
|
|
Loading…
Reference in a new issue