How gameboy829/ps5-lz4-game-compressor works
LZ4 Game Compressor is a PS5-hosted browser app that turns supported game images or folder dumps into AMPR LZ4 packs. The user selects a source and destination, configures verification and original-game handling, then monitors a cancellable conversion; the service coordinates mounting, packing, runtime installation, verification, and post-conversion storage actions. The graph combines README-documented behavior with sampled service/backend code and the source index. Several conversion and web-service internals were not sampled, so those links are documented rather than asserted as source-level calls.
Main entry points: standalone/main.cpp App service · ampr_backend.cpp PS5 pack backend · src/main.cpp Native pack engine · ampr_emu_pack.cpp AMPR pack runtime
Components 25
Console app
- Browser interface
ampr-ps5/standalone/main.cpp - App service
ampr-ps5/standalone/main.cpp - HTTP server
ampr-ps5/standalone/http.h - Game library
ampr-ps5/standalone/main.cpp - Original game handling
ampr-ps5/standalone/original.h
Conversion engine
- PS5 pack backend
ampr-ps5/src/ampr_backend.cpp - Native pack engine
ampr-native/src/main.cpp - Source index
ampr-native/src/index_builder.h - Profile packer
ampr-native/src/profile_packer.h - Universal profile
ampr-native/src/universal_profile.h - Pipeline I/O
ampr-native/src/pipeline_io.h - Pipeline diagnostics
ampr-native/src/pipeline_diagnostics.h
AMPR format and runtime
- AMPR pack runtime
ampr-native/reference/external/ampr_emu/src/ampr_emu_pack.cpp - APR services
ampr-native/reference/external/ampr_emu/src/ampr_emu_apr_services.cpp - Async I/O broker
ampr-native/reference/external/ampr_emu/include/ampr_emu_aio_broker.h - Command buffer dump
ampr-native/reference/external/ampr_emu/include/ampr_emu_command_buffer_dump.h - Command packing
ampr-native/reference/external/ampr_emu/include/ampr_emu_command_packing.h - Runtime config and errors
ampr-native/reference/external/ampr_emu/include/ampr_emu_config.h - Runtime logging
ampr-native/reference/external/ampr_emu/include/ampr_emu_log.h - Runtime synchronization
ampr-native/reference/external/ampr_emu/include/ampr_emu_sync.h
Pack tooling
- AMPR pack tools
ampr-native/reference/external/ampr_emu/tools/ampr_pack.py - AMPR format utilities
ampr-native/reference/external/ampr_emu/tools/ampr_pack_format.py - Command log parser
ampr-native/reference/external/ampr_emu/tools/parse_ampr_command_log.py
Other components
- Browser user
- ShadowMountPlus
Connections 23
- Browser user → Browser interface: selects and configures
- Browser interface → HTTP server: uses web interface
ampr-ps5/standalone/main.cpp - HTTP server → App service: routes requests
ampr-ps5/standalone/main.cpp - App service → Game library: loads library
ampr-ps5/standalone/main.cpp - Game library → ShadowMountPlus: queries mounted games
ampr-ps5/standalone/main.cpp - App service → ShadowMountPlus: mounts and refreshes
- App service → PS5 pack backend: starts conversion
- PS5 pack backend → Native pack engine: invokes pack engine
ampr-ps5/src/ampr_backend.cpp - PS5 pack backend → Source index: builds fresh index
ampr-ps5/src/ampr_backend.cpp - PS5 pack backend → Universal profile: generates profile
ampr-ps5/src/ampr_backend.cpp - Native pack engine → Profile packer: uses packer
ampr-native/src/main.cpp - Native pack engine → Pipeline I/O: reads and writes data
ampr-native/src/main.cpp - Native pack engine → Pipeline diagnostics: reports pipeline metrics
- App service → Original game handling: moves or removes original
ampr-ps5/standalone/main.cpp - PS5 pack backend → AMPR pack runtime: installs pinned runtime
- AMPR pack runtime → Async I/O broker: uses asynchronous I/O
ampr-native/reference/external/ampr_emu/src/ampr_emu_pack.cpp - APR services → Command buffer dump: uses command buffer support
ampr-native/reference/external/ampr_emu/src/ampr_emu_apr_services.cpp - Command buffer dump → Command packing: uses packing helpers
ampr-native/reference/external/ampr_emu/include/ampr_emu_command_buffer_dump.h - AMPR pack runtime → Runtime config and errors: uses runtime definitions
ampr-native/reference/external/ampr_emu/src/ampr_emu_pack.cpp - AMPR pack runtime → Runtime synchronization: uses synchronization
ampr-native/reference/external/ampr_emu/src/ampr_emu_pack.cpp - APR services → Runtime logging: logs service activity
ampr-native/reference/external/ampr_emu/src/ampr_emu_apr_services.cpp - AMPR pack tools → AMPR format utilities: uses format utilities
ampr-native/reference/external/ampr_emu/tools/ampr_pack.py - AMPR pack tools → Command log parser: reads command logs