mirror of
https://github.com/mortyzip/KeepAwake.git
synced 2026-10-18 13:01:06 +02:00
37 lines
651 B
C
37 lines
651 B
C
/* Stand-ins for the PS5 system calls, so src/ps5.c can run on a computer
|
|
(see `make host`). */
|
|
|
|
#include <stdio.h>
|
|
#include <stddef.h>
|
|
|
|
|
|
int
|
|
sceKernelSendNotificationRequest(int device, void *req, size_t size, int blocking) {
|
|
(void)device; (void)req; (void)size; (void)blocking;
|
|
return 0;
|
|
}
|
|
|
|
|
|
int
|
|
sceSystemServicePowerTick(void) {
|
|
printf("[KeepAwake] power tick\n");
|
|
fflush(stdout);
|
|
return 0;
|
|
}
|
|
|
|
|
|
int
|
|
sceUserServiceInitialize(void *param) {
|
|
(void)param;
|
|
return 0;
|
|
}
|
|
|
|
|
|
int
|
|
sceSystemServiceLaunchWebBrowser(const char *uri, void *param) {
|
|
(void)param;
|
|
printf("[KeepAwake] open browser: %s\n", uri);
|
|
fflush(stdout);
|
|
return 0;
|
|
}
|