Adubbz / Ghidra-Switch-Loader

Nintendo Switch loader for Ghidra
ISC License
281 stars 43 forks source link

"Unexpected Loader exception from Nintendo Switch Binary" when importing a specific binary #29

Closed DaQueenJodi closed 2 years ago

DaQueenJodi commented 2 years ago

when importing the main executable from The Binding of Isaac: Afterbirth+, I get this error in the logs: image

This happens on both the updated and base versions.

I am using the latest build of the plugin with the latest version of Ghidra

DaQueenJodi commented 2 years ago

(I should note that the other games I have access to all import fine)

masagrator commented 2 years ago

You should check with other tools like hactool if your main is not corrupted. This is decompression error.

hactool --intype=nso --unconpressed=main_unc main
Adubbz commented 2 years ago

Historically when this has happened it has usually been as the result of a bad dump produced by something like NXDumpTool. You should dump the raw NCAs and then use hactool/hactoolnet for extraction.

DaQueenJodi commented 2 years ago

alright I'll try that, thanks! (and yes I did use NXDumpTool)

DaQueenJodi commented 2 years ago

That was absolutely it, it imports fine now