Skip to content
NotY215Public

About

A native Windows recompiler focused on translating PS3 game code and rebuilding the runtime needed to execute it.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

1,311 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

PPSX33 logo

PPSX33

PlayStation 3 Full Recompiler

A native Windows recompiler focused on translating PS3 game code and rebuilding the runtime needed to execute it.

PPSX33 banner

๐ŸŒ Website ยท ๐Ÿงญ Roadmap ยท ๐Ÿ—๏ธ Architecture ยท ๐Ÿ“Š Diagrams ยท ๐Ÿ“ Engineering ยท ๐Ÿ› ๏ธ Developer guide ยท ๐Ÿงญ AIFIAR (AI workflow) ยท ๐Ÿ“˜ User manual ยท ๐ŸŽฎ Game notes

Website Platform: Windows x64 Graphics: Vulkan 1.1 (default) ยท OpenGL secondary Goal: Full Recompilation

Important

PPSX33's primary goal is full PlayStation 3 game recompilation into native Windows builds. This is the project's intended direction, not a claim that every PS3 title is already compatible. Full recompilation requires accurate PPU and SPU execution, system-library and kernel behaviour, DMA, and real RSX/GCM rendering. A successful lift or build alone does not prove that a game boots or is playable. Control-flow recovery and boot FIFO assist are diagnostic; use PS3RT_STRICT_FAULT=1 when validating correctness.

Note

Input format: PPSX33 loads decrypted ELF files only. It does not decrypt EBOOTs, bundle keys, or launch external emulators. Obtaining a decrypted ELF is the user's responsibility (for example, offline tooling some users already have โ€” not provided by this project).

Host tools

Desktop UI: C++ / Qt 6 Widgets. Graphics: Vulkan 1.1 default; OpenGL selectable (working-phase notice in UI). (PPSX33.exe, 1.1.0-Alpha). Runtime: unified ps3rt.dll under build/dist/ (plus ps3core.dll, vulkan-1.dll).

โœจ What PPSX33 is building

PPSX33 is an open-source PlayStation 3 recompiler whose main objective is full recompilation: translate a game's PowerPC code and supporting execution paths into a native Windows build, with a host runtime that reproduces the PS3 system services and hardware behaviour the title depends on.

This is a whole-system engineering target, not just an ELF-to-C++ conversion. The project must progressively cover instruction semantics, control flow, kernel and library services, SPU/MFC/DMA behaviour, and RSX/GCM graphics so that generated builds can execute real games correctly. Implementation status is reported explicitly below and in the roadmap.

๐Ÿ” The pipeline

Decrypted ELF ย  โ†’ ย  ๐Ÿงญ Analyse ย  โ†’ ย  โš™๏ธ Lift to C++ ย  โ†’ ย  ๐Ÿ”— Link runtime ย  โ†’ ย  ๐Ÿงช Validate

  1. Load a decrypted ELF or supported game layout that you are legally entitled to use.
  2. Analyse and lift supported PPU instruction regions into generated C++.
  3. Resolve runtime dependencies through the current LV2, PRX and library HLE layers.
  4. Build a native Windows executable using the installed Microsoft C++ toolchain.
  5. Measure what actually works using traces, lift reports and per-game test notes.

The last step matters: generated code is only one milestone. Correct execution and rendered gameplay must be demonstrated separately.

๐Ÿšฆ Full-recompilation status

PPSX33 is being developed toward full recompilation. These statuses describe implemented subsystems and remaining gaps; they do not imply universal game compatibility.

Area Status Current scope
๐Ÿงฐ GUI, project flow and build orchestration ๐ŸŸก Partial / evolving Windows GUI and native build pipeline; title-specific failures remain possible
๐Ÿ“ฆ ELF loading and PPU lifting ๐ŸŸก Partial Supported code can be lifted; translation coverage is not semantic correctness
๐Ÿง  PPU runtime and control flow ๐ŸŸก In progress Guest context and execution paths exist; unsupported or inaccurate paths can break execution
๐ŸชŸ Vulkan 1.1 host window and presentation ๐ŸŸข Implemented baseline Async HWND pump + swapchain clear + guest RGBA upload
๐Ÿงฑ RSX/GCM command processing ๐ŸŸก In progress FIFO decode and Vulkan present; assist draws proven; title-authored GCM and shaders still incomplete
๐Ÿงฉ LV2, PRX and NID services ๐ŸŸก Partial Static-style stub binds (LR/PCโ†’NID); runtime recovery fallback; coverage still incomplete
โšก SPU, MFC/DMA and SPURS ๐ŸŸก Partial Assist/runtime paths exist; full instruction and scheduling behaviour is not complete
๐Ÿ”Š Audio, ๐ŸŽฎ input and ๐Ÿ’พ save services ๐ŸŸก Partial Basic host paths exist; title-level behaviour still needs verification
๐ŸŽฏ End-to-end game compatibility ๐Ÿ”ด Not established generally Static lift reports do not establish bootability or playability

Host graphics (current)

  • Default: Vulkan 1.1 (dynamic vulkan-1.dll load; CMake copies DLL into dist/).
  • Secondary: OpenGL 4.5 (guest present + shader blit live).
  • Removed: Direct3D 11 backend and DX11 dependencies.
  • Present path: Dedicated HWND pump thread so the game window stays responsive during boot HLE; PPU thread does not block on vkQueuePresent.

Legend: ๐ŸŸข implemented baseline ยท ๐ŸŸก partial or under active development ยท ๐Ÿ”ด not established / major work remains

๐Ÿ“š Module status (HLE / runtime)

HLE and host services written for this project. Public emulator behaviour may be used as a reference for expected results, not as a code source. Counts are approximate; individual titles can still fail on โ€œCompleteโ€ rows if a code path is wrong or incomplete.

Category Modules (scope) Status
Kernel threading PPU thread / mutex / cond / semaphore HLE ๐ŸŸก Partial
Kernel events / timers Event queues, timer syscalls ๐ŸŸก Partial
Kernel memory sys_memory-style alloc, mmapper subset ๐ŸŸก Partial
Filesystem cellFs / path mapping, real host I/O ๐ŸŸก Partial
Save data cellSaveData / PARAM.SFO paths ๐ŸŸก Partial
Input cellPad mapping (XInput/host keys) ๐ŸŸก Partial
Audio cellAudio host path (waveOut-style) ๐ŸŸก Partial
Video out / GCM cellVideoOut, cellGcmSys control/FIFO kick ๐ŸŸก Partial
Graphics (RSX) OpenGL 4.5 guest present live; Vulkan 1.1 init soft-fail on some GPUs; FIFO assist ๐ŸŸก In progress
SPU / MFC / SPURS Interpreter, DMA/tags, job assist ๐ŸŸก Partial
PRX / NID / LV2 Import stubs, common syscalls ๐ŸŸก Partial
Codecs / media PNG/JPG helpers; ATRAC/VDEC deep decode ๐Ÿ”จ Limited / partial
Network / NP Not a product goal โ€” stubs only if present โšช Out of scope / stub
USB / Camera / Move Not required for core recomp path โšช Out of scope / stub

Legend: ๐ŸŸก partial ยท ๐Ÿ”จ limited ยท โšช out of scope for current goals ยท ๐ŸŸข only when end-to-end proven on titles

Task-level tracking: ROADMAP.md.

For the task-level breakdown and longer-term architecture plan, see ROADMAP.md and PPU coverage notes. Game-specific evidence and logs are collected under docs/games.

๐Ÿ—๏ธ Architecture & documentation

Document Description
Website Project site
Architecture Containers, runtime layers, PPU/RSX pipelines (Mermaid, PlantUML, D2, C4, โ€ฆ)
Diagrams index Mermaid, PlantUML, Graphviz, WaveDrom, Vega-Lite, Nomnoml, Markmap, Kroki, โ€ฆ
Roadmap Phased gates and status
Engineering Build and contributor notes
Game runtime requirements Supported graphics APIs, display output and runtime hardware requirements

High-level flow:

flowchart LR
  ELF[Decrypted ELF] --> Lift[PPU lift]
  Lift --> Build[MSVC game EXE]
  Build --> RT[ps3rt runtime]
  RT --> VK[Vulkan 1.1 present]
Loading

๐Ÿงฉ Why this is difficult

The PS3 combines multiple processors and a custom graphics system. A useful recompiler has to reproduce the observable behaviour games depend on, not just translate their main CPU instructions.

Component Responsibility Compatibility work
PPU 64-bit PowerPC main processor Instruction semantics, branches, registers, memory and calling conventions
SPU Synergistic processors Vector operations, local store, channels and job execution
MFC / DMA SPU data movement Transfer ordering, tags, stalls and completion semantics
RSX / GCM Graphics processor and command interface FIFO, shaders, vertex data, textures, render targets and synchronization
LV2 / PRX Kernel and modules Threads, memory, events, imports, exports and module lifecycle
cellFs and other libraries Game-facing system APIs Correct paths, data formats, errors, timing and state

A failure that looks like a graphics bug may actually be caused by a missing import or an SPU transfer that completed too early. Diagnostics should preserve that chain of evidence.

๐Ÿ—๏ธ Project layout

See STRUCTURE.md for the full tree. Summary:

PPSX33/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ core/              # ELF loaders, VFS, memory, HLE kernel
โ”‚   โ”œโ”€โ”€ processor/PPU|SPU  # Lift, run headers, SPU interpreter
โ”‚   โ”œโ”€โ”€ RSX/               # Graphics pipeline + Vulkan 1.1 (OpenGL secondary)
โ”‚   โ”œโ”€โ”€ games-stuff/       # Audio + Video subsystems
โ”‚   โ”œโ”€โ”€ UI/                # Qt Widgets GUI
โ”‚   โ””โ”€โ”€ cli/               # CLI tooling
โ”œโ”€โ”€ assets/ docs/ redist/
โ”œโ”€โ”€ STRUCTURE.md
โ”œโ”€โ”€ ROADMAP.md
โ””โ”€โ”€ README.md

Runtime sources live under src/ (no top-level runtime/ tree). Built artefacts in build/dist/:

  • PPSX33.exe, ps3rt.dll, api.dll, rsx.dll, render.dll, resolution.dll, vulkan-1.dll โ€” under build/dist/ (copy into the game USRDIR next to EBOOT)
  • dist/runtime/ โ€” headers only for game link (no DLL/LIB duplicate)

Generated projects may contain a game executable, runtime DLLs (ps3rt, api, rsx, render, resolution), vulkan-1.dll, guest image data, controller mapping and logs. Exact output depends on the project and build path.

๐Ÿ–ฅ๏ธ Game runtime requirements

The following requirements apply to running a recompiled game (the generated game executable with ps3rt.dll). They are separate from the Visual Studio, Qt 6 and CMake tools used to build PPSX33 itself.

Supported graphics APIs

API Version Role
Vulkan 1.1 Default host renderer. vulkan-1.dll must be beside the generated game executable.
OpenGL 4.5 Secondary core-profile path. Feature parity with Vulkan is in progress.
Direct3D 11 โ€” Not supported. The D3D11 runtime and dependencies have been removed.

Minimum requirements

These are the current minimums for opening the game window and clearing/presenting a frame. They do not guarantee that a particular game will boot or render correctly.

Component Requirement
Operating system 64-bit Windows 10 or later
GPU A driver exposing Vulkan 1.1 or OpenGL 4.5
Vulkan loader vulkan-1.dll beside the generated game executable when using Vulkan
Display output Fixed 720ร—560 (560p) host present for the current path
Monitor A physical display of 720ร—576 or higher is recommended
VRAM Enough for a 560p swapchain and staging buffers; typically 1 GB or more usable
Input Keyboard or XInput controller, where supported by the title
Game data Lawfully obtained title files that you are authorized to run

Recommended configuration

Component Recommendation
GPU Discrete GPU with current vendor drivers and Vulkan 1.1 support
VRAM 2 GB or more
System memory 8 GB or more for guest and host buffers
Storage SSD for game data and logs

These are renderer and presentation requirements, not compatibility guarantees. Game behaviour still depends on the implemented PPU, SPU, RSX/GCM and system-service paths. A machine meeting the minimum requirements may open and present a window while a specific title remains unsupported or fails during execution.

Building PPSX33

The requirements above are not the development-toolchain requirements for building the recompiler or its GUI. For the current build setup, install the Visual Studio C++ desktop development tools and Windows SDK, the Qt 6 SDK required by the GUI project, and the CMake/Ninja tools required by the relevant targets. Check the redistributable and toolchain notes and the project build files for configuration-specific details.

See requirements.md for the maintained game-rendering requirements.

๐Ÿš€ Build and try the tools

  1. Install Visual Studio with the C++ desktop development tools and a Windows SDK.

  2. Install the Qt 6 SDK required by the GUI project.

  3. Clone this repository and open a terminal at the repository root.

  4. Run the repository build helper:

    scripts\\build_all.bat
  5. Launch the generated GUI if the build completes successfully.

  6. Load only a decrypted ELF or game layout you are legally entitled to use.

  7. Review the lift report and build log before attempting to run the generated executable.

Build outputs and paths may vary by configuration. If a step fails, capture the complete error and toolchain version instead of assuming the project built successfully. The developer guide and user manual provide more detail.

๐Ÿงช How full recompilation is evaluated

PPSX33 tracks the full-recompilation pipeline in separate, verifiable stages:

  • Decode/lift coverage: which instruction encodings the tool recognises or translates.
  • Semantic correctness: whether translated instructions reproduce expected guest state.
  • Runtime service coverage: whether required imports and system calls behave correctly.
  • Graphics correctness: whether real game commands produce the expected image.
  • Game testing: whether a documented path boots, accepts input and runs reliably.

A percentage in a lift report is not a compatibility rating. A title should only be described as playable when that claim is backed by reproducible end-to-end testing. See PPU coverage and the individual reports in game documentation.

๐Ÿงญ Full-recompilation priorities

The engineering target is to close the gaps between translated code and a working native game build:

  1. Expand PPU translation and validate instruction semantics, branches, register state, memory behaviour and control flow.
  2. Replace incomplete runtime paths with correct LV2, PRX, NID and cell-library implementations.
  3. Implement SPU execution and accurate MFC/DMA ordering, tags, stalls and synchronization.
  4. Complete the RSX/GCM path, including FIFO processing, shaders, vertex attributes, textures, surfaces, depth, render targets and presentation.
  5. Validate generated native builds with repeatable per-title boot, input, audio and rendering tests.
  6. Add regression coverage and keep unsupported behaviour visible instead of silently treating it as successful execution.

The live task list is maintained in ROADMAP.md. Contributions should include test evidence or a clear explanation of what remains unverified.

๐Ÿ•น๏ธ Controller mapping

PPSX33 includes a controller mapping reference for the current input path:

The repository includes a controller-mapping reference in assets/PPSX33 PS3 Controller Key Mapping.png. Its asset provenance and any third-party marks/artwork should be verified before redistribution. See KEY_MAPPING.md for the text reference.

See KEY_MAPPING.md for the text reference. Actual game input support may depend on the title and runtime path.

๐Ÿค Contributing

Useful contributions include:

  • PPU instruction implementations with focused regression tests.
  • Correct LV2/PRX behaviour backed by logs or API references.
  • RSX command and shader work demonstrated with real test scenes.
  • SPU and DMA tests that verify data and completion ordering.
  • Reproducible Windows build fixes and clearer diagnostics.
  • Game reports that distinguish โ€œtranslatedโ€, โ€œbootsโ€, โ€œreaches menuโ€ and โ€œplayableโ€.

Please keep changes scoped, explain assumptions, and do not add copyrighted game binaries, firmware or extracted game assets. Read CONTRIBUTING.md before opening a change.

๐Ÿ”— Project references

โš–๏ธ Legal and preservation

PPSX33 does not bundle commercial game files, firmware, or proprietary keys. Its optional RPCS3 integration can invoke an external EBOOT decryption workflow; this does not establish permission to process a file or guarantee legality. Users must review applicable law and third-party terms. Asset provenance and license compatibility must be checked separately. See LEGAL.md, TERMS.md and NOTICE.

๐Ÿ“„ License

See LICENSE for the project's license. Third-party components, headers and SDKs remain subject to their own licenses.

Per-game Modify.exe

API (Vulkan 1.1 / OpenGL 4.5), quality (720/560/480), and play unlock are controlled by Modify.exe next to the game EXE โ€” not the main UI.

Game package workflow

  1. Build Project โ€” produces game EXE + unlock token
  2. Port โ€” emits Modify.exe + ppsx33_launch.json bound to that game
  3. Copy to Game Folder โ€” ships EXE, Modify, ps3rt.dll, vulkan-1.dll, guest_image.bin, keymap
  4. Launch game EXE โ†’ opens Modify (API / quality / controller) โ†’ PLAY

Modify.exe

Prebuilt Qt6 tool (same Qt as host). Discovers tagged game EXE, edits keymap.json, launches with -nogui -api= -h=.

About

A native Windows recompiler focused on translating PS3 game code and rebuilding the runtime needed to execute it.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages