mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -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.
14 lines
455 B
C
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;
|
|
}
|