private void button1_Click(object sender, EventArgs e)
{
var BO2GSCOpen = new OpenFileDialog { Filter = "GSC File|*.gsc" };
if (BO2GSCOpen.ShowDialog() == DialogResult.OK)
{
API.SetMemory(0x10020000, new byte[] { 0x10, 0x04, 0x00, 0x00 });
API.SetMemory(0x10020004, new byte[] { 0x00, 0x00, 0x00, 0x33 });
byte[] bytes = Encoding.UTF8.GetBytes(textBox126.Text + "\0");
API.SetMemory(0x10022000, bytes);
API.SetMemory(0x10020008, new byte[] { 0x10, 0x02, 0x20, 0x00 });
API.SetMemory(0x1002000C, new byte[] { 0x00, 0x00, 0x00, 0x01 });
API.SetMemory(0x10020010, new byte[] { 0xFF, 0xFF, 0xFF, 0xFF });
API.SetMemory(0x1002004C, new byte[] { 0x00, 0x18, 0xAC, 0x04 });
byte[] array2 = new byte[4];
API.GetMemory(0x10020050, array2);
Array.Reverse(array2);
byte[] buffer = File.ReadAllBytes(BO2GSCOpen.FileName);
API.SetMemory(0x10056814, buffer);
uint offset = BitConverter.ToUInt32(array2, 0) + 8u;
API.SetMemory(offset, new byte[] { 0x10, 0x05, 0x68, 0x14 });
MessageBox.Show("GSC Injected.\nAddress: 0x" + offset.ToString("X8") + "\n※Any display Address of 0x0140C4C0 is Failed Inject.\nMust you will Inject on Started Match.", "Injected", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}