Setting up Ghidra
Ghidra is a powerful open-source reverse engineering tool developed by the National Security Agency (NSA). It allows you to analyze and decompile executable files, making it easier to understand how a game works and how to modify it.
Prerequisites
Section titled “Prerequisites”Installing Ghidra
Section titled “Installing Ghidra”- Go to the latest GitHub release.
- Download the
.zipfile. - Extract the downloaded file to a location of your choice.
- Open the extracted folder.
- Run
./ghidraRun(macOS/Linux) or double-clickghidraRun.bat(Windows).
Installing Switch Loader
Section titled “Installing Switch Loader”To analyze Animal Crossing: New Horizons or any Nintendo Switch game, you will need to install the Switch Loader plugin for Ghidra. This plugin allows Ghidra to understand and analyze Nintendo Switch executable files.
- Go to the Switch Loader releases.
- Download the
.zipbuilt for your Ghidra version. The version is in the release name, for exampleGhidra_12.1.2. - Start Ghidra and use the “Install Extensions” dialog (
File->Install Extensions). - Click on the
+button in the upper right corner. - Select the downloaded
.zipand reopen Ghidra.