How ngnmax/anyps5 works
AnyPS5 ports executables for native Linux and Windows use: an input executable enters the relinker, which produces a target-native executable, while the project’s PRX system-library implementations support dynamic linking rather than a separate emulation process. The GPU compatibility branch includes AGC driver execution and graphics-pipeline management; shader recompilation produces SPIR-V. The source index and excerpts establish some internal components, but do not expose enough call sites to safely connect most runtime layers, so those relationships are left out. The README documents the product-level workflow and capabilities.
Main entry points: main.cpp Relinker · prx PRX Libraries · DrawPipeline.cpp Draw Commit Queue · recompiler Shader Recompiler
Components 18
Executable Porting
- Relinker
core/relinker/main.cpp - Relinker Pipeline
core/relinker/relinker/src/pipeline/RelinkerPipeline.cpp - Code Analysis
core/relinker/relinker/src/analysis/CodeInstructionCollector.cpp - Guest Module Builder
core/relinker/relinker/src/guest/GuestModuleBuilder.cpp - Game Patching
core/relinker/relinker/src/patching/GamePatch.cpp - Code Generation
core/relinker/codegen/src/Amd64OnlyConverter.cpp - Native Executable
System Compatibility
- PRX Libraries
core/libs/prx - AGC Library
core/libs/prx/libSceAgc
GPU Driver
- AGC Driver
core/libs/prx/libSceAgcDriver/Execution/src/Driver/EntryPoints.cpp - Draw Commit Queue
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp - Graphics Pipelines
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp - Pipeline Journal
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp - Vulkan Device
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
Shader Translation
- Shader Recompiler
core/shader/recompiler - SPIR-V Emitter
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp - SPIR-V Output
Other components
- Game Executable
Connections 5
- Game Executable → Relinker: converts
README.md - Relinker → Native Executable: produces native
README.md - PRX Libraries → Native Executable: supports dynamic linking
README.md - Shader Recompiler → SPIR-V Output: produces
README.md - Draw Commit Queue → AGC Driver: reports failures
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp