A GameCube & Wii decompilation toolkit
Go to file
Luke Street 141339fcb0 Version 0.2.0
- Add `elf disasm` (disassemble an ELF)
- Add `elf fixup` (for GNU assembler)
- Add `map order` (link order deduction)
- Add `map slices` (ppcdis slices.yml, WIP)
- Add `map symbols` (ppcdis symbols.yml, WIP)
- Big speed improvement for map processing
- Minor `elf2dol` cleanup
2022-12-10 01:51:42 -05:00
.cargo Initial commit 2022-11-27 17:02:32 -05:00
.github/workflows Version 0.2.0 2022-12-10 01:51:42 -05:00
assets Version 0.2.0 2022-12-10 01:51:42 -05:00
src Version 0.2.0 2022-12-10 01:51:42 -05:00
.gitignore Add -o option to shasum 2022-11-27 23:43:46 -05:00
Cargo.lock Version 0.2.0 2022-12-10 01:51:42 -05:00
Cargo.toml Version 0.2.0 2022-12-10 01:51:42 -05:00
LICENSE-APACHE Initial commit 2022-11-27 17:02:32 -05:00
LICENSE-MIT Initial commit 2022-11-27 17:02:32 -05:00
README.md Fix build badge in README.md 2022-11-27 17:10:58 -05:00
build.rs Initial commit 2022-11-27 17:02:32 -05:00
deny.toml Initial commit 2022-11-27 17:02:32 -05:00
rustfmt.toml Initial commit 2022-11-27 17:02:32 -05:00

README.md

decomp-toolkit Build Status

GameCube/Wii decompilation project tools.

This provides various commands that assist with creating a build system that works across all major platforms without dealing with platform-specific C compilers, UNIX compatibility layers like msys2, or other idiosyncrasies.

Commands

demangle

Demangles CodeWarrior C++ symbols. A thin wrapper for cwdemangle.

$ dtk demangle 'BuildLight__9CGuiLightCFv'
CGuiLight::BuildLight() const

elf2dol

Creates a DOL file from the provided ELF file.

$ dtk elf2dol input.elf output.dol

map

Processes CodeWarrior map files and provides information about symbols and TUs.

$ dtk map entries Game.MAP 'Unit.o'
# Outputs all symbols that are referenced by Unit.o
# This is useful for finding deduplicated weak functions,
# which only show on first use in the link map.

$ dtk map symbol Game.MAP 'Function__5ClassFv'
# Outputs reference information for Function__5ClassFv
# CodeWarrior link maps can get very deeply nested,
# so this is useful for emitting direct references
# in a readable format.

shasum

Calculate and verify SHA-1 hashes.

$ dtk shasum baserom.dol
949c5ed7368aef547e0b0db1c3678f466e2afbff  baserom.dol

$ dtk shasum -c baserom.sha1 
baserom.dol: OK