void Inject_me3_butClick(object sender, EventArgs e) { if (sav3file.has_mystery_event == true || sav3file.game == 1) { if (sav3file.game == 1) { MessageBox.Show("Mystery Event was removed from non Japanesse Emerald.\n\tYou can still inject the data at your own risk."); } string path = null; int filesize = FileIO.load_file(ref me3file, ref path, me3filter); if (filesize == sav3file.me3_size) { ME3 me3_struct = new ME3(me3file, filesize); if (sav3file.game != me3_struct.isemerald) { MessageBox.Show("This ME3 file is not for this game!"); } else { sav3file.set_ME3(me3file); //custom_script.Checked = true; //Add fix sav3 checksum func3 sav3file.update_section_chk(4); MessageBox.Show("Mystery event injected."); FileIO.save_data(sav3file.Data, savfilter); } } else if (filesize == -1) { ; } else { MessageBox.Show("Invalid file size."); } } else { MessageBox.Show("Save file does not have Mystery Event enabled."); } }