PS1 development experiments.
Done with psyqo, in C++20.
See also: psxtools (to be incorporated into build process).
For now, only Linux build is supported.
- PCSX-Redux
- CMake
- gdb-multiarch
- GCC MIPS toolchain
- mkpsxiso - included prebuilt in
tools/bin
- Build psxtools and set
PSXTOOLS_BIN_DIR
to its location (../psxtools/build
by default). - 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
Build:
cmake --preset=default
cmake --build --preset=default
Note: if you're not using presets, your build dir should be named "build" or else mkpsxiso won't work properly.
Run:
pcsx-redux -exe build/game.ps-exe -run
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
Example of encoding audio:
./psxavenc -t vag -f 44100 ~/work/ps1dev/assets/raw/sounds/door_open.wav ~/work/ps1dev/assets/door_open.vag