Files
PS5_RetroArch/tests/webui_server_main.cpp
T
Mihawk aed9543a76 Add native RetroArch WebUI on port 6769
Serve the approved purple layout with local assets, streamed content transfers, release notes and next-launch settings. Keep the service within the title lifetime and preserve explicit launch overrides.

Verify: CCACHE_DIR=build/verification/ccache BUILD_JOBS=8 bash tools/verify.sh (all five gates; 92 tests), real browser integration including throttled keyboard cancellation, and two native console launches. Evidence: evidence/webui/{capture,expectation}.json; replay with python3 tools/evidence.py compare evidence/.

Design review and normal Impeccable completion passed in a hash-verified identical-source snapshot because the original-root fingerprint scanner failed; records remain in build/verification. No game performance soak claimed.
2026-10-02 11:07:52 -04:00

23 lines
543 B
C++

/* Host harness for the same HTTP handlers shipped in the console title. */
#include "../src/webui_ps5.h"
#include <csignal>
#include <cstdlib>
#include <unistd.h>
static volatile sig_atomic_t stopped = 0;
static void stop(int)
{
stopped = 1;
}
int main(int argc, char **argv)
{
if (argc != 3)
return 2;
signal(SIGTERM, stop);
signal(SIGINT, stop);
if (!ps5_webui_start(argv[1], static_cast<unsigned short>(std::atoi(argv[2]))))
return 1;
while (!stopped)
usleep(10000);
ps5_webui_stop();
}