diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index 2d84db6e1..88aab0b84 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -575,8 +575,9 @@ private void openFile(byte[] input, string path, string ext) if (BitConverter.ToUInt32(input, i) == 0x42454546) { Array.Resize(ref input, 0x70000); break; } bool o = (input.Length == 0x80000); - try { openMAIN(ram2sav.getMAIN(input), path, (o) ? "ORAS" : "XY", o, true); } catch { return; } ramsav = (byte[])input.Clone(); + try { openMAIN(ram2sav.getMAIN(input), path, (o) ? "ORAS" : "XY", o, true); } + catch { ramsav = null; return; } } #endregion #region Battle Video @@ -687,7 +688,7 @@ private void openSave(bool oras) savedited = false; Menu_ToggleBoxUI.Visible = false; - B_VerifyCHK.Enabled = ramsav != null; + B_VerifyCHK.Enabled = ramsav == null; DaycareSlot = 0; setBoxNames(); // Display the Box Names