mirror of
https://github.com/MoHadiShibli/Control4Free.git
synced 2026-10-06 14:00:27 +02:00
A GoldHEN ELF payload that creates virtual DualShock 4 controllers with scePadVirtualDevice*, the path Remote Play uses, so they work on the home screen, at sign-in and in games. A phone or PC drives them from a page the payload serves on port 4264. - Stage 0 (default) is the browser controller: four slots, explicit creation, native PS4 user selection, input over a WebSocket. - Stages 1-8 are the diagnostics that established the VDA call order. - Loopback-only /api/status and /api/stop for the launcher app. - The klog connection is reopened when a controller is created, so a start through GoldHEN AutoRun still works if it beats the klog server. The VDA code is ported from seregonwar/SplashDown (GPL-3.0).
17 lines
520 B
C
17 lines
520 B
C
/* Control4Free -- the resident command server (see src/server.c). */
|
|
|
|
#ifndef C4F_SERVER_H
|
|
#define C4F_SERVER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Its own port, so experiments no longer go through GoldHEN's PayLoader. */
|
|
#define C4F_SERVER_PORT 4264
|
|
|
|
/* Listens, runs commands, and returns when told to quit or when idle too long.
|
|
* `klogFd` is the kernel-log reader new pads are found through. Any pad still
|
|
* alive is removed before it returns. */
|
|
int c4fServerRun(int32_t realUserId, int klogFd);
|
|
|
|
#endif /* C4F_SERVER_H */
|