void Inject_eberryClick(object sender, EventArgs e) { if (sav3file.game == 0) { string path = null; int filesize = FileIO.load_file(ref berryfile, ref path, berryfilter); if (filesize == SAV3.BERRY_SIZE) { sav3file.set_ECB(berryfile); sav3file.set_Enigma_Flag(); sav3file.update_section_chk(4); MessageBox.Show("Enigma Berry injected."); FileIO.save_data(sav3file.Data, savfilter); } else if (filesize == -1) { ; } else { MessageBox.Show("Invalid file size."); } } }