Add wc6 import prompt if no SAV loaded

This commit is contained in:
Kaphotics
2016-04-16 11:32:25 -07:00
parent 707285cf0d
commit 802ecc9c66

View File

@@ -680,6 +680,10 @@ private void openFile(byte[] input, string path, string ext)
new SAV_Wondercard(input).ShowDialog();
else
{
if (!SAV.Exportable && DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo,
"No save file loaded to obtain player info from", "Continue?"))
return;
PK6 pk = new WC6(input).convertToPK6(SAV);
if (pk == null || pk.Species == 0 || pk.Species > 721)
{