mirror of https://github.com/mgba-emu/mgba.git
Vita: Port mgba-perf
This commit is contained in:
parent
34b9055271
commit
9c7548855e
|
@ -31,6 +31,10 @@ uint32_t* romBuffer;
|
||||||
size_t romBufferSize;
|
size_t romBufferSize;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef PSP2
|
||||||
|
#include <psp2/kernel/processmgr.h>
|
||||||
|
#include <psp2/power.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -108,6 +112,8 @@ int main(int argc, char** argv) {
|
||||||
romBuffer = SYS_GetArena2Lo();
|
romBuffer = SYS_GetArena2Lo();
|
||||||
SYS_SetArena2Lo((void*)((intptr_t) romBuffer + romBufferSize));
|
SYS_SetArena2Lo((void*)((intptr_t) romBuffer + romBufferSize));
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(PSP2)
|
||||||
|
scePowerSetArmClockFrequency(444);
|
||||||
#else
|
#else
|
||||||
signal(SIGINT, _mPerfShutdown);
|
signal(SIGINT, _mPerfShutdown);
|
||||||
#endif
|
#endif
|
||||||
|
@ -177,6 +183,8 @@ int main(int argc, char** argv) {
|
||||||
VIDEO_Flush();
|
VIDEO_Flush();
|
||||||
VIDEO_WaitVSync();
|
VIDEO_WaitVSync();
|
||||||
VIDEO_WaitVSync();
|
VIDEO_WaitVSync();
|
||||||
|
#elif defined(PSP2)
|
||||||
|
sceKernelExitProcess(0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return didFail;
|
return didFail;
|
||||||
|
|
Loading…
Reference in New Issue