PS1 development experiments.
Done with psyqo, in C++20.
Building with Docker is extremely easy, just run:
./docker_build.sh
You'll find the resulting ISO(s) in docker_out
directory.
- PCSX-Redux
- CMake
- gdb-multiarch
- GCC MIPS toolchain
- mkpsxiso - included prebuilt in
tools/bin
- Use psxavenc for encoding sound files from .wav
sudo apt-get install gdb-multiarch gcc-mipsel-linux-gnu g++-mipsel-linux-gnu binutils-mipsel-linux-gnu libmagick++-dev
For now, only Linux build is supported.
Build:
./build.sh
- The tools are built in
build
. - The games will be built in
build_games/
(e.g.build_games/cat_adventure/game.iso
)
Run:
./run.sh # run in Redux
./drun.sh # run in DuckStation
Or just
./run.sh
Run game and debug in gdb (you will need to add repo's path to your GDB's safe-path
):
./debug.sh
By default, the game is built with -Os
which can be bad for debugging. In this case, run:
./debug.sh DEBUG
This will compile the game with -O0
and debugging would be much pleasant.
Example of encoding audio:
./psxavenc -t vag -f 44100 ~/work/ps1dev/assets/raw/sounds/door_open.wav ~/work/ps1dev/assets/door_open.vag