NOTE: this is NOT the upstream ppcdis, this is m8's branch that uses protobuf persistence
Project description
ppcdis
GC/Wii PowerPC disassembly & decompilation tools.
These tools are focused on automatically generating as much as possible, and doing it in a way that can be regenerated at any time. This makes things more future-proof (for example, projects have often had to go back and do a lot of manual labelling when adding new binaries like rels, whereas that's handled automatically here), reduces bloat in the github repo, and reduces manual editing (which, in the case of undecompiled assembly, can be a big time saver - renaming symbols, splitting files, and correcting pointers for shiftability can be very tedious in most existing setups, whereas they're just quick yml edits here). The pointer tracking in disassembly is also more in-depth than that of doldisasm.py, so more of the work towards shiftability should be done already.
These tools in an early state and therefore large changes may still happen. No backwards compatibility will be guaranteed.
See TOOLS.md for information on each tool. (Documentation is currently pretty lacking, so feel free to reach out to me for help)
See the Super Paper Mario Decompilation for an example of a project using these tools.
Building locally
Building this repository requires the existence of a protoc
executable (protobuf compiler). To create wheel and source distributions:
pip install build
python -m build -s -w
To create editable installs, you currently have to manually invoke proto first (idk enough python to make stetuptools automatically do this).
protoc -Iproto --python_out=ppcdis proto/labelinfo.proto
protoc -Iproto --python_out=ppcdis proto/relocinfo.proto
APIs
- The main API for these tools is the command line API
- A python API is exposed in the
ppcdis
folder for pure python build systems to make use of too- Generally, any new features for the python API should also be exposed by the command line API too
- Importing anything that isn't included in
__init__.py
isn't officially supported - Like the rest of the project, the API won't be guaranteed any backwards compatibility (and is likely to change more than the command line API will). This means users should not be required to install this globally (use something like venv instead), and that installs should be tied to a specific working version for the project
- Installing the folder with pip can be used for the python API, but the command line API does not require this
Credits
- camthesaxman for writing the original doldisasm.py
- riidefi, terorie and stebler for the Mario Kart Wii Decompilation's tools, which heavily inspired this
- All contributors to Tockdom's DOL and REL file format documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ppcdis-protobuf-0.0.2.tar.gz
.
File metadata
- Download URL: ppcdis-protobuf-0.0.2.tar.gz
- Upload date:
- Size: 54.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cba7d405763589761a4e2524982be6f79ef3869637cc7565d8a71a809861e13 |
|
MD5 | 6bfce40130c189b5d7d165229acaaff8 |
|
BLAKE2b-256 | 54698f429ea5e794af2fa3604a98cc12e842a1cced57367d0af49bb17b6f7c9a |
File details
Details for the file ppcdis_protobuf-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ppcdis_protobuf-0.0.2-py3-none-any.whl
- Upload date:
- Size: 62.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1562e3daa7c107e88f2e6d39ca9d7e17ded7cda24d2b574650cc27bce2937a20 |
|
MD5 | 02eca5902f3d597611dad01fad1acee1 |
|
BLAKE2b-256 | e2b95007565887fc964fefa14897f54a280743f18bddf826667e0dfa6662de0c |