Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # @Original Post: http://pastebin.com/2VgUAVgk
- ####################################################################################################
- 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);
- }
- /*/-----------------------------------------------------------------------
- Convert your .gsc to .BIN then drop it in to resources in your vs project
- Then This to Inject it.
- Code:
- private void metroButton1_Click(object sender, EventArgs e)
- {
- uint num = InjectTolocation("maps/mp/gametypes/_clientids.gsc");
- try
- {
- Bytes = Resources._clientids;
- ByteLength = Bytes.Length;
- }
- catch
- {
- }
- int input = SpacetoInject();
- PS3.SetMemory((uint) input, Bytes);
- WriteInt32(num + 8, input);
- }
- -----------------------------------------------------------------------/*/
- ####################################################################################################
- /*
- @Credits: http://www.nextgenupdate.com/forums/call-duty-black-ops-2-gsc-mods-scripts/786110-tut-how-pack-gsc-your-very-own-injector.html
- Kiwi_Modz
- */
- ####################################################################################################
- //BaSs_HaXoR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement