| View previous topic :: View next topic |
| Author |
Message |
Debug
Joined: 06 Oct 2005 Posts: 16
|
Posted: Fri Oct 14, 2005 2:05 pm Post subject: 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: |
catch(IOException e){
//oh crap
}
|
|
|
| Back to top |
|
 |
groepaz

Joined: 01 Sep 2005 Posts: 305
|
|
| Back to top |
|
 |
RustyFunkNut
Joined: 26 Sep 2005 Posts: 17 Location: London, UK
|
Posted: Sat Oct 15, 2005 8:47 pm Post subject: Re: command to load .pbp |
|
|
| Debug wrote: | | I wanted to know if there is a command to load .PBP files, I tried the search and nothing relevant came up. |
Do you mean load, or run?
Apparently this code runs a .PBP on v1.5 - I've not managed to get it to work on my v1.0 :(
| Code: |
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;
}
|
(it does try to launch the image, but on 1.0 it returns to the home screen with an error) |
|
| Back to top |
|
 |
|