一套用于修改和反向工程 PSX 游戏的工具。
The goal of this project is to provide a set of tools for PSX developers in order to make modding and reverse engineering games easier, while using modern non-proprietary software.
Watch the demo:
To discuss PSX development, hacking, and reverse engineering in general, please join the PSXDev Network Discord server:
python3.7+
python-pipNote: some python installations might be incomplete. Make sure that you have installed python, pip and add them to your PATH.
To compile the GCC mipsel toolchain (incomplete)
make
libgl1 with GLIBC_2.35 # if using prebuilt$ git clone https://github.com/mateusfavarin/psx-modding-toolchain.gitInstall the python dependencies from the command line
$ pip install --upgrade pip setuptools wheel
$ pip install -r requirements.txtNote: don't use whitespaces in the folder names. This will break the make script.
TODO: Verify this is still the case
Run the following command in a terminal like cmd or powershell
$ powershell -c "& { iwr -UseBasicParsing https://raw.githubusercontent.com/grumpycoders/pcsx-redux/main/mips.ps1 | iex }"In a new terminal, run the following
mips install 13.1.0OR pre-built installations are found at
Extract the folder, e.g. g++-mipsel-none-elf
Then add both of these folders to your PATH
g++-mipsel-none-elf/bin
g++-mipsel-none-elf/mipsel-non-elf/binYou can compile the necessary gcc && mipsel-none-elf from source using this script. It takes a few hours.
OR you can find pre-built binaries here
The install_toolchain_prebuilt.sh extracts them to /opt/gcc-mipsel-none-elf/ (you may need sudo access). You just need to add them to your PATH
export PATH="$PATH:/opt/gcc-mipsel-none-elf/bin"
export PATH="$PATH:/opt/gcc-mipsel-none-elf/mipsel-none-elf/bin"Note: This isn't permanent and only works in a single terminal at a time.
OR you can run the dockerfile (EXPERIMENTAL) from the root of this directory
docker build -t psx-modding .
docker run -d -t psx-moddingYou'll need brew, and then run:
brew install ./tools/macos-mips/mipsel-none-elf-binutils.rb
brew install ./tools/macos-mips/mipsel-none-elf-gcc.rbPCSX-Redux is a PSX emulator heavily focused on development, debuggability, and reverse engineering. This project uses Redux's web server in order to connect the PSX modding toolchain to the emulator, allowing the developer to seamlessly hot-reload code while playing the game and update the emulator debugger symbols during runtime.
In order to setup the emulator, you'll need to download PCSX-Redux and change the following settings under the configuration/emulation tab:
[ ] Dynarec CPU # Leave this unchecked
[ ] 8MB # Optional
[x] Enable Debugger
[x] Enable GDB Server
[x] Enable Web ServerNotPSXSerial, or NoPS for short, is a Serial/TTY suite for Unirom 8 featuring kernel-resident debugging, cart/EEPROM flasher, .exe/.elf upload, memcard tools, peeks, pokes, dumps and bugs. This project is integrates NoPS in order to hot-reload code directly in your PS1.
You can download the latest release of Unirom here, and then set the NoPS folder to your PATH.
Check the docs for information about configuring and using the tools.
If you're interested in decompiling a game, you might be interested in checking out this real time function unit tester.
We use pytest for testing
cd /tools/mod-builder
python -m pytest暂无开放 Issues,或尚未同步最近议题。