/ghidra-port-mods-guide

Ghidra and IDA Guides about how to update mods + AR mods info. Mainly focus on Yuzu/Ryujinx

Primary LanguagePython

This guide is mainly focused on how to update mods or cheats for Yuzu or Ryujinx emulators. It also includes some tutorials that you can use to start making your first mods in exefs (IPSwitch) format.

What we usually need:

  • Ghidra or IDA Pro
  • SwitchLoader Extension if you're using Ghidra or nxo64.py if you're using IDA Pro
  • Java JDK. I suggest you the latest version: Java JDK 20
  • Ryujinx to extract the ExeFS files. You can do it using Yuzu too but IMO Ryujinx does a better job and it’s more faster
  • HxD or any other Hex Editor like this one (online version)
  • NSCBuilder to obtain our BID in a simpler way + your own prod.keys
  • NotePad++ It's not really necessary but IMO it's more convenient compared to Windows Notepad
  • Previous game update (I suggest you at least 2 previous updates). This suggestion is just for starters. As son as you gain experience using Ghidra/IDA Pro you will only need the previous version and the new version you want to update/port. So in my example it would be: TOTK 1.1.1 + 1.1.2 + 1.2.0. However for the guide I will only use TOTK 1.1.2 + TOTK 1.2.0
  • Latest game update (In this case TOTK 1.2.0).
  • Second Monitor/Ultrawide Monitor (Optional): This is just a suggestion. It's not really necessary but it makes your job easier. You will be searching and getting data from one version that you will then need to search and locate in the new version. So in case that you only have 1 monitor, you will have to split your screen: On the left one version and on the right the other version.
  • Time + a lot of patience: Some games take less time to analyze using Ghidra (depending on the size of the original game and the update, the changes incorporated etc etc). Others, however, may take hours. In my case I prefer to use IDA Pro and save a lot of time (IDA is able to reduce Ghidra times by half or even less).

If you don't have much time I would recommend starting with a game like ... ToZ: Link's Awakening. You can find the mods here (Press Control F on your keyboard and search for Awakening).

CLICK HERE TO START the Ghidra guide

Other guides:

Special Thanks to:

If you want to say thanks for the guide and support me, here's my Ko-Fi