Advertisement
Guest User

3DS Mario kart 7 trainer ntr cfw plugin reversed

a guest
Aug 4th, 2015
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. I reversed the mario kart 7 trainer plugin (https://gbatemp.net/threads/mario-kart-7-trainer-plugin-200cc-500cc-9000cc.394098/).
  2. Here, I detail the interesting code, so someone else can make it work with AR3DS or something else.
  3. 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/
  4.  
  5. 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.
  6.  
  7. loc_118: Start of cheat plugin code (This is the default gamePluginEntry. Nothing of interest here.)
  8.  
  9. loc_154: Starting values
  10. r5 = 0x1537669C (?)
  11. r4 = 0x41100000 (Normal cc)
  12.  
  13. loc_15C: Checks buttons to change r4
  14. b sub_B0 (default getKey() function)
  15. r4 = 0x41A00000 (Dpad Right = 500 cc)
  16. 0x413C0000 (Dpad Left = 200 cc)
  17. 0x42C80000 (Dpad Down = 9000 cc)
  18. 0x41100000 (Select = Normal cc)
  19.  
  20. In any case, If any of the buttons is pressed, sub_D0 is called, which goes like:
  21. while(sub_B0() != 0) {
  22. svcSleepThread(0x5F5E100)
  23. }
  24. This is the default waitKeyUp function.
  25.  
  26. After r4 is set:
  27. r3 = 0x153765F0 (?)
  28. while(r5 != r3) {
  29. *r3 = r4
  30. *(r3 + 0x680) = r4
  31. r3 += 4
  32. }
  33. b loc_15C (This is an infinite loop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement