Files
psxrecomp/runtime/include/launcher_vsync.h
T
Matthew Stanley 3f3cfb7571 Integrate EU RC4 runtime and overlay tooling changes
Import the supplied developer handoff against 03e635e8. Include regional capability controls, texture validation, SHA acceleration with portable fallback, SPU CD/XA correction, and overlay export/staging fixes. Validated with rebuilt EU runtime, guarded AOT audit and focused regressions.
2026-10-21 16:54:05 -07:00

13 lines
517 B
C

#ifndef PSX_LAUNCHER_VSYNC_H
#define PSX_LAUNCHER_VSYNC_H
/* Launcher ABI is 1=on, 2=off, 3=adaptive; config/GL is 1,0,-1.
* Keep an unsupported config-only mode (VRR=2) if the row stays unchanged. */
static inline int psx_vsync_to_launcher(int value) {
return value == 0 ? 2 : value == -1 ? 3 : 1;
}
static inline int psx_vsync_from_launcher(int value, int previous) {
if (previous == 2 && value == psx_vsync_to_launcher(previous)) return previous;
return value == 2 ? 0 : value == 3 ? -1 : 1;
}
#endif