command to load .pbp

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Debug
Posts: 16
Joined: Thu Oct 06, 2005 4:16 am

command to load .pbp

Post by Debug »

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
}
User avatar
groepaz
Posts: 305
Joined: Thu Sep 01, 2005 7:44 am
Contact:

Post by groepaz »

sceLoadExec ?
RustyFunkNut
Posts: 17
Joined: Mon Sep 26, 2005 5:10 am
Location: London, UK

Re: command to load .pbp

Post by RustyFunkNut »

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: 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 * >&#40; executable &#41;;
	execParam.key = NULL;
	execParam.size = sizeof&#40; execParam &#41; + total_length;

	if &#40; sceKernelLoadExec&#40; executable, &execParam &#41; < 0 &#41;
	&#123;
		return false;
	&#125;

	return true;
&#125;
(it does try to launch the image, but on 1.0 it returns to the home screen with an error)
Post Reply