Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button3_Click(object sender, EventArgs e)
- {
- // converts the hex string to the byte representation
- int i = 0;
- int x = 0;
- byte[] bytes = new byte[(textBox1.Text.Length) / 2];
- while (textBox1.Text.Length > i + 1)
- {
- long lngDecimal = Convert.ToInt32(textBox1.Text.Substring(i, 2), 16);
- bytes[x] = Convert.ToByte(lngDecimal);
- i = i + 2;
- ++x;
- }
- if (textBox1.TextLength == 16)
- {
- // sets your xuid
- uint num;
- XboxConsole xuid = manager.OpenConsole(manager.DefaultConsole);
- xuid.DebugTarget.SetMemory(0x81CFAB1C, (uint)bytes.Length, bytes, out num);
- }
- else
- {
- throw new Exception("Not a valid xuid");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment