private void getSAVOffsets(ref bool oras)
{
// Get the save file offsets for the input game
bool enableInterface = false;
if (BitConverter.ToUInt32(savefile, 0x6A810 + 0x7F000 * savindex) == 0x42454546)
{
enableInterface = true;
SaveGame = new PKX.Structures.SaveGame("XY");
}
else if (BitConverter.ToUInt32(savefile, 0x7B210 + 0x7F000 * savindex) == 0x42454546)
{
enableInterface = true;
SaveGame = new PKX.Structures.SaveGame("ORAS");
oras = true;
}
else
{
Util.Error("Unrecognized Save File loaded.");
SaveGame = new PKX.Structures.SaveGame("Error");
}
// Enable Buttons
GB_SAVtools.Enabled = B_JPEG.Enabled = B_VerifyCHK.Enabled = B_VerifySHA.Enabled = B_SwitchSAV.Enabled
= enableInterface;
}
private PictureBox getPictureBox(int slot)