private void buttonItem2_Click(object sender, EventArgs e) { try { PackageIO.Writer writer = new PackageIO.Writer(OFD1.FileName, Endian.Big, 0); writer.Position = 0x19A90; writer.WriteInt32(int.Parse(textBoxX2.Text)); writer.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } MessageBox.Show("Finished. Be sure to rehash and resign with Absolute Signer"); }
private void buttonItem2_Click(object sender, EventArgs e) { try //tries to do the following noted with { PackageIO.Writer writer = new PackageIO.Writer(OFD1.FileName, Endian.Big, 0); //creates a new Endian File writer writer.Position = 0x12FB0; //starts writing to the offset at 19A90 writer.WriteInt32(int.Parse(textBoxX2.Text)); //converts your typed code to Int32 and writes to the file writer.Close(); //closes the writer so file in use error doesn't occur } catch (Exception ex) //logs the error { MessageBox.Show(ex.Message); //shows the error message if something is wrong } MessageBox.Show("Finished. Be sure to rehash and resign with Absolute"); //reminder to user about rehashing and resigning }
private void buttonX2_Click(object sender, EventArgs e) { try { PackageIO.Writer writer = new PackageIO.Writer(OFD1.FileName, Endian.Big, 0); writer.Position = 0xD018; writer.WriteInt32(int.Parse(textBoxX2.Text)); writer.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } try { PackageIO.Writer writer = new PackageIO.Writer(OFD1.FileName, Endian.Big, 0); writer.Position = 0xD00C; writer.WriteInt32(int.Parse(textBoxX4.Text)); writer.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } try { PackageIO.Writer writer = new PackageIO.Writer(OFD1.FileName, Endian.Big, 0); writer.Position = 0xD010; writer.WriteInt32(int.Parse(textBoxX6.Text)); writer.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } try { PackageIO.Writer writer = new PackageIO.Writer(OFD1.FileName, Endian.Big, 0); writer.Position = 0xD014; writer.WriteInt32(int.Parse(textBoxX8.Text)); writer.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } MessageBox.Show("Finished Writing to offsets, be sure to rehash and resign"); }