mirror of
https://github.com/mihawk-99/PS5_RetroArch.git
synced 2026-10-22 00:22:29 -05:00
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.
23 lines
543 B
C++
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();
|
|
}
|