Guest User

Untitled

a guest
Oct 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. // 笳ッ縺ァExit
  2.  
  3. #include <pspkernel.h>
  4. #include <pspdebug.h>
  5.  
  6. PSP_MODULE_INFO("O to Exiter", 0, 1, 1);
  7. PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
  8.  
  9.  
  10. int main(void)
  11. {
  12.     SceCtrlData pad;
  13.     sceCtrlReadBufferPositive(&pad,1);
  14.  
  15.     if( pad.Buttons & PSP_CTRL_CIRCLE ) {
  16.             break;
  17.     }
  18.  
  19.     sceKernelDelayThread(10000);
  20.     sceKernelExitGame();
  21.  
  22.     return 0;
  23. }
Add Comment
Please, Sign In to add comment