Fix Secret Base Flags

Should be 100% now.
This commit is contained in:
Kurt
2014-12-14 12:36:44 -08:00
parent 0e82b39e58
commit f2883845a4

View File

@@ -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();