Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Function: [its a sys call]
- //Thread: http://www.nextgenupdate.com/forums/ps3-cheats-customization/751410-sprx-writing-into-cod-locations-non-host-stuff-2.html
- int32_t write_process(uint64_t ea, const void * data, uint32_t size)
- {
- // 905 = sys_call number
- //sys_process_getpid() = pid
- // ea = offset
- // size = lenght of the bytes
- //data = bytes
- system_call_4(905, (uint64_t)sys_process_getpid(), ea, size, (uint64_t)data);
- return_to_user_prog(int32_t);
- }
- //How to use: [red boxes]
- uint32_t bytes[1]; // uint32_t = Uint32[]
- bytes[0] = 0x38C0FFFF; // bytes for red boxes = 0x38,0xC0,0xFF,0xFF
- write_process(0x000834D0, &bytes, 4); // first argutment = offset │ second are the variable │ thiird the
- //lenght of the bytes so 0x38 will be 1 and 0x0F0F will be 2
- //use a character array instead of an unsigned interger array because with a character array you can do as many different bytes as you //want without having to make a bunch of different arrays and join them all together so example
- char[] lotsofbytes = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 };
- char bytes[] = { 0x38, 0x60, 0x00, 0x01 };
- write_process(0x783E0, &bytes, 4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement