command to load .pbp
command to load .pbp
I wanted to know if there is a command to load .PBP files, I tried the search and nothing relevant came up.
Code: Select all
catch(IOException e){
//oh crap
}
-
- Posts: 17
- Joined: Mon Sep 26, 2005 5:10 am
- Location: London, UK
Re: command to load .pbp
Do you mean load, or run?Debug wrote:I wanted to know if there is a command to load .PBP files, I tried the search and nothing relevant came up.
Apparently this code runs a .PBP on v1.5 - I've not managed to get it to work on my v1.0 :(
Code: Select all
bool RunExecutable( const char * executable )
{
SceKernelLoadExecParam execParam;
const u32 total_length( strlen( executable ) + 1 );
execParam.args = total_length;
execParam.argp = const_cast< char * >( executable );
execParam.key = NULL;
execParam.size = sizeof( execParam ) + total_length;
if ( sceKernelLoadExec( executable, &execParam ) < 0 )
{
return false;
}
return true;
}