(Added ghidra guide(unfinished)) |
(corrected an mistake with subheaders) |
||
| Line 1: | Line 1: | ||
In this guide you will see how to use ghidra to view and edit luigi mansion dark moon code and then rebuild it. | 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'' | ''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 : | 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: | ||
| Line 12: | Line 12: | ||
, choose non shared project and whatever name you want, when the project is created slide the exefs.elf in ghidra and choose those settings : | , choose non shared project and whatever name you want, when the project is created slide the exefs.elf in ghidra and choose those settings: | ||
| Line 21: | Line 22: | ||
[[File:ScreenGhidra2.png|thumb]] | [[File:ScreenGhidra2.png|thumb]] | ||
Double click on the exefs.elf and ghiadra will open a new window and purpose to analyse the file say : | Double click on the exefs.elf and ghiadra will open a new window and purpose to analyse the file say: | ||
Revision as of 15:30, 6 June 2024
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.