How snuri00/psp-web-recomp works
PSP Web Recomp runs a user-supplied PSP game by translating its MIPS executable ahead of time, then executing the generated code against a high-level PSP kernel and guest-memory model. At runtime, the host entry advances guest frames and routes system calls into kernel services; display lists are dispatched to the GE and WebGL backend, while audio is mixed for browser playback. Disc files can be fetched on demand. The README documents these product capabilities; source excerpts show selected runtime links, so unsampled service connections are omitted.
Main entry points: kernel.cpp Kernel and scheduler · main.cpp Host entry · profile Translated game · io.cpp File I/O
Components 15
Runtime
- Translated game
profile - Host entry
profile/host/main.cpp
PSP kernel
- Kernel and scheduler
profile/host/kernel.cpp - Device services
profile/host/devices.cpp - File I/O
profile/host/io.cpp - PGD decryption
profile/host/pgd.cpp
Graphics
- Display-list engine
profile/host/ge.cpp - GE worker
profile/host/ge_worker.cpp - WebGL renderer
profile/host/ge_gl.cpp
Media and files
- Audio output
profile/host/sas.cpp - ATRAC decoding
profile/host/atrac.cpp - Movie bookkeeping
profile/host/mpeg.cpp - Streamed disc files
profile/host/webfs.cpp
Other components
- Game owner
- Browser page
Connections 16
- Game owner → Translated game: provides disc
README.md - Translated game → Host entry: runs in
README.md - Host entry → Kernel and scheduler: starts session
profile/host/main.cpp - Kernel and scheduler → Device services: installs services
profile/host/kernel.cpp - Kernel and scheduler → Audio output: installs services
profile/host/kernel.cpp - Kernel and scheduler → ATRAC decoding: installs services
profile/host/kernel.cpp - Kernel and scheduler → Movie bookkeeping: installs services
profile/host/kernel.cpp - Kernel and scheduler → File I/O: handles file calls
- File I/O → PGD decryption: decrypts PGD
profile/host/io.cpp - Kernel and scheduler → GE worker: queues lists
README.md - GE worker → Display-list engine: runs lists
profile/host/ge_worker.cpp - Display-list engine → WebGL renderer: submits draws
profile/host/ge.cpp - Kernel and scheduler → Streamed disc files: reads disc files
- Streamed disc files → Browser page: fetches ranges
README.md - Host entry → Browser page: plays mixed audio
profile/host/main.cpp - Browser page → Host entry: sends controls
profile/host/main.cpp