Loader for SNES ROMs. Works with Ghidra v12.0.4. Work of several People, not mine alone.
Builds are done via Gradle, with the GHIDRA_INSTALL_DIR environment variable set to the path of
Ghidra installation.
Linux:
cdto theSnesLoaderdirectory.- Run
GHIDRA_INSTALL_DIR='/some/absolute/path' ./gradlew buildExtension.
Windows:
cdto theSnesLoaderdirectory.- Run
set GHIDRA_INSTALL_DIR="C:\some\absolute\path" && gradlew.bat buildExtension.
Windows Powershell:
cdto theSnesLoaderdirectory.- Run 'set GHIDRA_INSTALL_DIR="C:\some\absolute\path\ghidra_12.0.4_PUBLIC" | .\gradlew.bat buildExtension'
The built extension is in the dist directory.
- Copy it into
GHIDRA_INSTALL_DIR/Extensions/Ghidra/. - Start Ghidra
- File\Install Extension
- Select the SnesLoader, add a mark
- Press OK and restart Ghidra completly
The repo doesn't contain any Eclipse project files, but we can generate them with Gradle. If you have an Eclipse workspace with an older version of the project, remove the project from the workspace before doing this.
Linux:
cdto theSnesLoaderdirectory.- Run
GHIDRA_INSTALL_DIR='/some/absolute/path' ./gradlew cleanEclipse. - Run
GHIDRA_INSTALL_DIR='/some/absolute/path' ./gradlew eclipse.
Windows:
cdto theSnesLoaderdirectory.- Run
set GHIDRA_INSTALL_DIR="C:\some\absolute\path" && gradlew.bat cleanEclipse. - Run
set GHIDRA_INSTALL_DIR="C:\some\absolute\path" && gradlew.bat eclipse.
Then in Eclipse: File --> Import --> Existing Projects into Workspace.
Select the SnesLoader directory.
Right-click the SnesLoader project in the project explorer, choose GhidraDev --> Link Ghidra...