masagrator on GBAtemp forum in a post titled Finding the Build ID for the cheats code.
The main idea is to extract buildID from main
file in exefs
. It locates at offset 0x40
and is 32-byte long (aka. 0x40 - 0x47
). Cheats only use first 8 bytes.
ImHex Preview
If you wanna try it out yourself, an ideal test title is Fire Emblem: Shadow Dragon and the Blade of Light included in the FC/NES library offered by Nintendo Switch Online. It’s less than 20 MB and has no update/DLC. I would not go into detail about resource unpacking et al since that’s not the point of this post. But I can offer a hint: required main
file is located in the largest file with nca
extension.
Game info FYI, focus on BID
:
Update: just noticed you could use NxFileViewer to view it directly… Anyway, this still serves as a technical reference.
Sine īrā et studiō