Skip to content

eliasdaler/ps1dev

Repository files navigation

PS1 dev

PS1 development experiments.

Done with psyqo, in C++20.

See also: psxtools (to be incorporated into build process).

Current progress

progress

Requirements

For now, only Linux build is supported.

  1. PCSX-Redux
  2. CMake
  3. gdb-multiarch
  4. GCC MIPS toolchain
  5. mkpsxiso - included prebuilt in tools/bin
  6. Build psxtools and set PSXTOOLS_BIN_DIR to its location (../psxtools/build by default).
  7. 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

How to

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