Administrator



Level: 43



Posts: 406/463

EXP: 538229

Next: 26817



Since: 09-25-12

From: Germany



Last post: 199 days ago

Last view: 5 days ago



Magikoopa

Code patcher for 3ds games







Magikoopa is a tool that compiles custom code for 3ds games and inserts it into code.bin files and also allows to insert hooks into the original code to the inserted code allowing for example replacing functions.



Because of memory segmentation it is not easy to add as much code to code.bin files as we want. To allow that we insert a small loader into the padding between the executable and data section that reprotects memory to our needs to mark perviously read-write only memory as executable.



Magikoopa features a nice UI that displays anthing that can go wrong during the compiling and inserting steps. It even allows you to jump directly to issues in code/hooks my clicking on the issues displayed in the UI.



Source Code:



I will add better explaination how to use the tool and add builds when I make a bit more progress on it.



You can also find examples working with NSMB2 here:

(The memory offsets in the example are based on the US Gold Edition)



____________________

GitHub - YouTube - NSMBHD

Magikoopa is a tool that compiles custom code for 3ds games and inserts it into code.bin files and also allows to insert hooks into the original code to the inserted code allowing for example replacing functions.Because of memory segmentation it is not easy to add as much code to code.bin files as we want. To allow that we insert a small loader into the padding between the executable and data section that reprotects memory to our needs to mark perviously read-write only memory as executable.Magikoopa features a nice UI that displays anthing that can go wrong during the compiling and inserting steps. It even allows you to jump directly to issues in code/hooks my clicking on the issues displayed in the UI.Source Code: https://github.com/RicBent/Magikoopa I will add better explaination how to use the tool and add builds when I make a bit more progress on it.You can also find examples working with NSMB2 here: https://github.com/RicBent/Magikoopa-NSMB2-Examples (The memory offsets in the example are based on the US Gold Edition)____________________