@@ -40,10 +40,15 @@ extern int _CRT_glob; extern void __wgetmainargs(int*, wchar_t***, wchar_t***, int, int*); #elif !defined(OF_IOS) extern char **environ; #endif + +#ifdef _PSP +# include +# include +#endif static OFApplication *app = nil; static void atexit_handler(void) @@ -135,11 +140,15 @@ exit(0); } + (void)terminateWithStatus: (int)status { +#ifdef _PSP + sceKernelExitGame(); +#else exit(status); +#endif } - init { self = [super init];