mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
3f3cfb7571
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.
13 lines
517 B
C
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
|