Architecture & Interactive Diagram
PPSSPW combines an Angular control shell, pure-browser worker scripts, minimal upstream patches inside deps/ppsspp-wasm/, and standalone Python/Docker packaging and relay services.
Four-Layer Responsibility Split
- Angular UI Shell (
wasm-page/src/): Renders the 8 active tabs + canvas viewport and sequentially loads the 6 public runtime scripts viaPpssppRuntime(ppsspp-runtime.ts). - Browser Runtime & Workers (
wasm-page/public/): EnforcescrossOriginIsolated+ WebGL2 preflight, managesbrowser-files.js(8 MiB window),game-download.js/download-worker.js(HTTP 206 + SHA-256 + OPFS),touch-controls.js(60 msminimum tap duration, per-pointer D-pad replacement,cancelAll()on layout changes), andsw.js(ppsspp-player-v22). - Minimal Upstream WASM Patch Set (
deps/ppsspp-wasm/): Pinned upstream provenance (UPSTREAM.md,upstream/source-lock.json) with scoped edits inCore/FileLoaders/BrowserFileLoader.cpp,SDL/SDLMain.cpp(EmuThreadStartpthread &UpdateScreenDPIordering), andUI/TabbedDialogScreen.cpp(720UI-unit horizontal tab switch). - Delivery & Relay Tooling (
scripts/,server/,deploy/relay/): Handles builds,prepare-deploy.mjssecurity/header gates,PlayerServerpreview, and optionalrelay.pydeployment.
Deep code walkthroughs, module specs, and source-evidence ledgers are maintained in Chinese under the repository's repo-docs/ directory (repo-docs/README.md, repo-docs/walkthroughs/one-real-run.md, repo-docs/code-map.md, repo-docs/modules/). See Decisions, ADRs & Investigations next.