Add Japanese prompt for <=Gen3 games

This commit is contained in:
Kaphotics 2016-07-14 20:22:24 -07:00
parent b6e9202158
commit 69e7f19101
3 changed files with 8 additions and 1 deletions

View file

@ -686,6 +686,13 @@ namespace PKHeX
SaveFile sav = SaveUtil.getVariantSAV(input);
if (sav == null || sav.Version == GameVersion.Invalid)
{ Util.Error("Invalid save file loaded. Aborting.", path); return; }
if (sav.Generation <= 3) // Japanese Save files are different. Get isJapanese
{
var dr = Util.Prompt(MessageBoxButtons.YesNoCancel, $"Generation {sav.Generation} Save File detected.", "Does this file originate from a Japanese game?");
if (dr == DialogResult.Cancel)
return;
sav.Japanese = dr == DialogResult.Yes;
}
SAV = sav;
SAV.FilePath = Path.GetDirectoryName(path);

View file

@ -181,7 +181,6 @@ namespace PKHeX
// Trainer Info
public override GameVersion Version { get; protected set; }
private bool Japanese;
private uint SecurityKey
{
get

View file

@ -19,6 +19,7 @@ namespace PKHeX
public abstract SaveFile Clone();
public abstract string Filter { get; }
public byte[] Footer { protected get; set; } = new byte[0]; // .dsv
public bool Japanese { protected get; set; }
// General PKM Properties
protected abstract Type PKMType { get; }