Xbox Cloud Gaming app for PS5 Homebrew
C
docs/multiplatform.md: the core changes the SDL3 app needs (M1)
Rafael Abud Ferreira071c8d89d6d2
diff --git a/docs/multiplatform.md b/docs/multiplatform.mdindex 36ad56f..b5dfbdb 100644--- a/docs/multiplatform.md+++ b/docs/multiplatform.md@@ -112,6 +112,14 @@ shared code:`kbm_sdl` with relative mouse; SDL audio, with a portable AudioQueuesplitting `audio_out.cpp` / `audio_in.cpp`; the XDG data folder; toasts for`platform::notify`; the UI hiding what the capabilities rule out.+ The core gains three things with it: a `display::pump()` step in+ `coreFrame()`, on the menu and the streaming branch, so the video mailbox+ is drawn on the main thread (a no-op on the PS5 and null); a wait that+ wakes on a new frame or an input event in place of the fixed 8 ms sleep+ (the PS5 keeps the sleep); and an orderly quit: before `coreShutdown()`+ closes the backends, the worker leaves its loop (a quit command), the+ stream and the price loop stop and the xCloud session is closed, so no+ thread draws, rumbles or plays into a closed backend.- **M2, Windows**: cross build with llvm-mingw and the SDL3 mingw package,tests under wine; a Winsock socket layer; atomic writes with`MoveFileExW`; a crash guard on SEH (splitting `crash_guard.cpp`).diff --git a/src/app/app_core.cpp b/src/app/app_core.cppindex 19c406b..053cfd2 100644--- a/src/app/app_core.cpp+++ b/src/app/app_core.cpp@@ -644,7 +644,8 @@ bool coreFrame() { return g_core->frame(); }void coreShutdown() {// Not on the PS5, whose loop never ends. The worker isn't stopped (it- // may be waiting on the network): the caller leaves with _exit().+ // may be waiting on the network): the caller leaves with _exit(). The+ // desktop app stops it and the stream first (docs/multiplatform.md, M1).XC_LOGI("=== PSBox Cloud Gaming closing ===");input::shutdown();display::shutdown();