Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static byte[] Bytes;
- public static int ByteLength;
- public static int MALLOC = 0x10050000;
- private void button1_Click(object sender, EventArgs e)
- {
- var file = new OpenFileDialog { Filter = "GSC File|*.gsc" };
- uint offset = InjectTolocation(textBox1.Text);
- if (file.ShowDialog() == DialogResult.OK)
- {
- string fileName = file.FileName;
- try
- {
- Bytes = System.IO.File.ReadAllBytes(fileName);
- ByteLength = Bytes.Length;
- }
- catch (System.IO.IOException)
- {
- this.Close();
- }
- }
- int WriteOffset = SpacetoInject();
- PS3.SetMemory((uint)WriteOffset, Bytes);
- PS3.Extensions.WriteInt32(offset + 8, WriteOffset);
- MessageBox.Show("GSC Injected");
- }
- public static uint InjectTolocation(string location)
- {
- RPC.Call(0x18ac04, new object[] { 0x10040000, 0x33, location, 1, -1 });
- return PS3.Extensions.ReadUInt32(0x10040000);
- }
- public static int SpacetoInject()
- {
- return (MALLOC = (MALLOC + ByteLength) + 100);
- }
Advertisement
Add Comment
Please, Sign In to add comment