Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Shadowman (decompilation)

A matching decompilation of Shadowman for the Nintendo 64, started with decompdecomp. 593 of 2817 functions are C that compiles to exactly the original code; the rest are still assembly. build.py rebuilds the game from this tree and checks it against your original, byte for byte.

Want to start your own decompilation? Follow RetroReversing's AI-assisted N64 decompilation guide.

Build

  1. Put your own copy of the game here as baserom.z64 (it is in .gitignore; never commit it).
  2. python3 build.py (it uses decompdecomp's period compiler and assembler, so decompdecomp must be installed).

Layout

Path What it is
src/<segment>/<function>.c Decompiled functions, one per file, each matching the original.
asm/nonmatchings/ Assembly of every function (the target for the decompiled ones).
asm/data/, asm/*.s, assets/ Data, start-up code and binary parts, still as assembly or binary.
include/common.h Types, structs and prototypes worked out so far.
game.ld Places every function and data block at its original address.
build.json, build.py How each file is built, and the build.
objdiff.json Per-function units for objdiff (python3 build.py targets makes their targets).

Keep going with any tool: write a function in C under src/, add it to build.json (see the existing entries), run build.py. When it says identical, the function matches. This is the base for ports and mods: once everything is C, the game can be rebuilt, changed and moved to other platforms.

The game's code and data belong to their rights holder: keep this tree to yourself unless you have the right to share it.

Notes

  • func_80119FE4: kept as assembly, its C also defines other functions; split their bodies into separate source files

Open in decompdecomp

Open this repository with New project → Open a saved project and supply your own game copy. The progress/ folder retains matches, drafts, names, notes, headers and compiler settings. Build files and sources live at the repository root; ROMs and extracted files are excluded by .gitignore.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages