Vita: Port mgba-perf
Vicki Pfau vi@endrift.com
Tue, 18 Aug 2020 18:56:02 -0700
1 files changed,
8 insertions(+),
0 deletions(-)
jump to
M
src/platform/test/perf-main.c
→
src/platform/test/perf-main.c
@@ -31,6 +31,10 @@ uint32_t* romBuffer;
size_t romBufferSize; #endif #endif +#ifdef PSP2 +#include <psp2/kernel/processmgr.h> +#include <psp2/power.h> +#endif #include <errno.h> #include <fcntl.h>@@ -108,6 +112,8 @@ romBufferSize = 0x02000000;
romBuffer = SYS_GetArena2Lo(); SYS_SetArena2Lo((void*)((intptr_t) romBuffer + romBufferSize)); #endif +#elif defined(PSP2) + scePowerSetArmClockFrequency(444); #else signal(SIGINT, _mPerfShutdown); #endif@@ -177,6 +183,8 @@ VIDEO_SetBlack(true);
VIDEO_Flush(); VIDEO_WaitVSync(); VIDEO_WaitVSync(); +#elif defined(PSP2) + sceKernelExitProcess(0); #endif return didFail;