Ghidra

From Luigi's Mansion 2 Modding Wiki
Revision as of 15:30, 6 June 2024 by Feldright (talk | contribs) (corrected an mistake with subheaders)

In this guide you will see how to use ghidra to view and edit luigi mansion dark moon code and then rebuild it.

Exefs.elf file

In construction

Opening the file in ghidra

First you need to download ghidra on this page https://github.com/NationalSecurityAgency/ghidra when its download run the file "ghidra_run.bat" then click on file and choose "New project" like on this screenshot:



, choose non shared project and whatever name you want, when the project is created slide the exefs.elf in ghidra and choose those settings:





Double click on the exefs.elf and ghiadra will open a new window and purpose to analyse the file say:




Then press ctrl+a on the code, right click and choose dissasemble - ARM right click another and dissasemble - THUMB, these process will take something like 10 minutes so wait.

When all of this is done modify code and enjoy!

Rebuild code.bin

In order to use the file ingame you have to rebuild it to do this press O in the code editor and choose those settings.