Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding rumble support
#3
Well the way you would add functions via overwriting memory is pretty simple

if you have something like this in a function that you want to trigger the rumble

Code:
0x0880B000 addi a0, 5 0x0880B004 sw a0, 0x4(s0)

then you need to find some memory that is unused first (or some memory that you can safely overwrite, like unused online functionality, padding or whatever).

Let's suppose there's some unused space in 0x0881A0C0 then you can change the code to

Code:
0x0880B000 j 0x0881A0C0 0x0880B004 addi a0, 5 .... .... 0x0881A0C0 sw a0, 0x4(s0) 0x0881A0C4 jal zz_sceRumble 0x0881A0C8 j 0x0880B008 0x0881A0CC nop

So basically, you overwrite one instruction to jump to a place where you then do that one instruction and everything additional that you want to do
Reply


Messages In This Thread
Adding rumble support - by Anarky - 04-29-2015, 06:36 AM
RE: Adding rumble support - by GamerzHell9137 - 05-01-2015, 10:01 AM
RE: Adding rumble support - by Bigpet - 05-01-2015, 10:59 AM
RE: Adding rumble support - by Anarky - 05-04-2015, 01:44 AM
RE: Adding rumble support - by [Unknown] - 05-04-2015, 06:32 AM

Forum Jump: