From f2883845a4acbd7bbfe73fed56737b1958d2d534 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 14 Dec 2014 12:36:44 -0800 Subject: [PATCH] Fix Secret Base Flags Should be 100% now. --- SAV/SAV_SecretBase.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SAV/SAV_SecretBase.cs b/SAV/SAV_SecretBase.cs index 09f3b5e55..afce11376 100644 --- a/SAV/SAV_SecretBase.cs +++ b/SAV/SAV_SecretBase.cs @@ -15,6 +15,7 @@ public partial class SAV_SecretBase : Form public SAV_SecretBase(Form1 frm1) { InitializeComponent(); + Util.TranslateInterface(this.Name, Form1.curlanguage, this.Controls); m_parent = frm1; Array.Copy(m_parent.savefile, sav, 0x100000); savindex = m_parent.savindex; @@ -30,8 +31,8 @@ public SAV_SecretBase(Form1 frm1) popFavorite(); LB_Favorite.SelectedIndex = 0; - MT_Flags.Text = BitConverter.ToUInt16(sav, 0x24800 + 0x140).ToString(); - // MT_Flags.Text = BitConverter.ToUInt32(sav, 0x2942C).ToString(); + // MT_Flags.Text = BitConverter.ToUInt16(sav, 0x24800 + 0x140).ToString(); PSS Stat transmitted + MT_Flags.Text = BitConverter.ToUInt32(sav, 0x2942C).ToString(); // read counter B_SAV2FAV(null, null); } Form1 m_parent; @@ -222,8 +223,8 @@ private void B_Cancel_Click(object sender, EventArgs e) private void B_Save_Click(object sender, EventArgs e) { uint flags = Util.ToUInt32(MT_Flags); - Array.Copy(BitConverter.GetBytes(flags), 0, sav, 0x24800 + 0x140, 4); - // Array.Copy(BitConverter.GetBytes(flags), 0, sav, 0x2942C, 4); + Array.Copy(BitConverter.GetBytes(flags), 0, sav, 0x24800 + 0x140, 4); // write pss + Array.Copy(BitConverter.GetBytes(flags), 0, sav, 0x2942C, 4); // write counter Array.Copy(sav, m_parent.savefile, 0x100000); m_parent.savedited = true; Close();