private void B_Save_Click(object sender, EventArgs e) { if (tabControl1.Controls.Contains(TAB_Joyful)) { saveJoyful(); } if (tabControl1.Controls.Contains(TAB_Ferry)) { saveFerry(); } if (tabControl1.Controls.Contains(TAB_BF)) { saveBF(); } if (SAV.FRLG) { SAV.setData(SAV.setString(TB_OTName.Text, TB_OTName.MaxLength), SAV.getBlockOffset(4) + 0xBCC); } SAV.BP = (ushort)NUD_BP.Value; SAV.Coin = (ushort)NUD_Coins.Value; SAV.Data.CopyTo(Main.SAV.Data, 0); Main.SAV.Edited = true; Close(); }
private void B_Save_Click(object sender, EventArgs e) { if (tabControl1.Controls.Contains(TAB_Joyful)) { saveJoyful(); } if (SAV.FRLG) { SAV.setData(PKX.setG3Str(TB_OTName.Text, SAV.Japanese), SAV.getBlockOffset(4) + 0xBCC); } SAV.BP = (ushort)NUD_BP.Value; SAV.Coin = (ushort)NUD_Coins.Value; SAV.Data.CopyTo(Main.SAV.Data, 0); Main.SAV.Edited = true; Close(); }