Dolphin, the GameCube and Wii emulator - Forums

Full Version: Retrieve GCN ID from GCZ
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

SlimJimGuyMan

I've been maintaining a small program that retrieves game IDs from various ROMs (NDS, N64, etc.) and would like to have it support GCZ files (it already supports GCM files). I know that the game ID for an uncompressed GCM GameCube disc image is simply located at the first six bytes in the file. I also know that the game ID appears in GCM's compressed counterpart, GCZ files, in various locations but the locations don't seem to be fixed.

I know that Dolphin is capable of reading the game ID straight from a GCZ though the file properties dialog on the Info tab, and since I was unsuccessful at finding any documentation for this, my question is: is there an algorithm or something I can use to retrieve the GameCube disc ID from a GCZ file?

Thanks in advance.