Note: This guide assumes the use of the recommended Docker setup for building and testing. If you are an advanced user and prefer to set up your own environment, you can refer to the Dockerfile for guidance. A detailed guide for manual setup will be provided in the future.
- Docker.
- Dreamcast SDK (Sega Library) Ver.1.55J (Google is your friend).
Ensure your SDK files are organized as follows:
├── bin (From disc Vol.1 dc_sdk/bin)
│ ├── binadj.exe
│ └── ...
├── shc (From disc Vol.2)
│ ├── bin
│ ├── include
│ └── lib
└── shinobi (From disc Vol.2)
├── driver
├── include
├── lib
└── sample
-
Duplicate the
.env.examplefile to create.env:cp .env.example .env
-
Edit the
.envfile to update theSDK_PATHvariable with the absolute path of the SDK files and save the changes. -
(Optional) If rebuilding the disc image, uncomment and set the
TBG_DISC_ROOTvariable in.envwith the absolute path of the extracted disc image files. -
Start a bash shell inside the
/appfolder:./docker-shell.sh
Run the following command in the Docker shell:
makeUpon success, the output will include:
Project built :)
After building, run the test suite to validate the code:
./scripts/run_tests.shThis uses the custom Hitachi SH4 emulator and PHP-based testing framework to ensure decompiled code behaves as expected.
If the Docker image is outdated or causing issues, rebuild it using the docker folder:
docker build -t lhsazevedo/tbg-decomp ./docker