mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 16:27:21 +00:00
Add Japanese prompt for <=Gen3 games
This commit is contained in:
parent
b6e9202158
commit
69e7f19101
3 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -181,7 +181,6 @@ namespace PKHeX
|
|||
// Trainer Info
|
||||
public override GameVersion Version { get; protected set; }
|
||||
|
||||
private bool Japanese;
|
||||
private uint SecurityKey
|
||||
{
|
||||
get
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue