PS2Recomp Unifies Game Ports With New Fork
A new fork of the PS2 static recompiler adds unified port branches for Gran Turismo 4, FlatOut 2, and more.
A fork of PS2Recomp, an experimental static recompiler and runtime tool that turns PlayStation 2 ELF binaries into C++ code, has merged multiple game-specific branches into a unified tree.
Developer batatinhafcbatatinha-pixel pushed 47 commits to merge branches for Gran Turismo 4, Grand Theft Auto: Liberty City Stories, Grand Theft Auto: Vice City Stories, FlatOut 2, MotorStorm Arctic Edge, and The Sopranos: Road to Respect into a single ports-unified branch. The update moves ps2DmaAddress to ps2_memory.h for Gran Turismo 4, makes only StartThread return the thread ID, and adds an optional OHCI USB host controller flag (PS2X_IOP_USB=1) to stop The Sopranos from stalling on its own USB driver.
How to Try It
Clone the repository with submodules, generate the build files via CMake, and compile. The build needs CMake 3.20+ and a C++20 compiler, and the project has been tested mainly with MSVC.
git clone --recurse-submodules [https://github.com/ran-j/PS2Recomp.git](https://github.com/ran-j/PS2Recomp.git)
cd PS2Recomp
cmake -S . -B out/build
cmake --build out/build --config Debug
Run the analyzer or use the Ghidra export script to generate your config.toml before recompiling the game ELF.
