Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I reversed the mario kart 7 trainer plugin (https://gbatemp.net/threads/mario-kart-7-trainer-plugin-200cc-500cc-9000cc.394098/).
- Here, I detail the interesting code, so someone else can make it work with AR3DS or something else.
- When I refer to things being the "default", I mean the default from cell9's plugin example found here: https://gbatemp.net/threads/release-zelda-albw-usa-cheat-plugin-for-ntr-cfw-1-x-2-x-with-source.392209/
- tags: 3ds n3ds cfw rom piracy pirate cia hack exploit gateway gbatemp cheat plugin ntr 1337 hacks just add this to that pastebin thread damnit.
- loc_118: Start of cheat plugin code (This is the default gamePluginEntry. Nothing of interest here.)
- loc_154: Starting values
- r5 = 0x1537669C (?)
- r4 = 0x41100000 (Normal cc)
- loc_15C: Checks buttons to change r4
- b sub_B0 (default getKey() function)
- r4 = 0x41A00000 (Dpad Right = 500 cc)
- 0x413C0000 (Dpad Left = 200 cc)
- 0x42C80000 (Dpad Down = 9000 cc)
- 0x41100000 (Select = Normal cc)
- In any case, If any of the buttons is pressed, sub_D0 is called, which goes like:
- while(sub_B0() != 0) {
- svcSleepThread(0x5F5E100)
- }
- This is the default waitKeyUp function.
- After r4 is set:
- r3 = 0x153765F0 (?)
- while(r5 != r3) {
- *r3 = r4
- *(r3 + 0x680) = r4
- r3 += 4
- }
- b loc_15C (This is an infinite loop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement