Files
psxrecomp/runtime/tests/test_launcher_vsync.c
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

14 lines
455 B
C

#undef NDEBUG
#include <assert.h>
#include "launcher_vsync.h"
int main(void) {
const int modes[] = {1, 0, -1, 2};
for (int i = 0; i < 4; ++i)
assert(psx_vsync_from_launcher(psx_vsync_to_launcher(modes[i]), modes[i]) == modes[i]);
assert(psx_vsync_from_launcher(2, 1) == 0);
assert(psx_vsync_from_launcher(1, 0) == 1);
assert(psx_vsync_from_launcher(3, 1) == -1);
assert(psx_vsync_from_launcher(2, 2) == 0);
return 0;
}