popsdeco

executeISO

Nov 6th, 2011
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int executeISO(const char *path, int mode){
  2. struct SceKernelLoadExecVSHParam param;
  3. memset(&param,0,sizeof(param));
  4. param.argp=DISC_EBOOT;
  5. param.args=strlen(DISC_EBOOT)+1;
  6. param.key="game";
  7. param.size=sizeof(param);
  8.  
  9. SEConfig config;
  10. sctrlSEGetConfig(&config);
  11.  
  12. sctrlSESetUmdFile(path);
  13. if(!mode){
  14. if(config.useisofsonumdinserted)
  15. sctrlSEMountUmdFromFile(path, 1, 1);
  16. else
  17. sctrlSEMountUmdFromFile(path, 0, 0);
  18. }
  19. sctrlSESetBootConfFileIndex(mode);
  20. return sctrlKernelLoadExecVSHDisc(DISC_EBOOT, &param);
  21. }
  22.  
RAW Paste Data