forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

command to load .pbp

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Debug



Joined: 06 Oct 2005
Posts: 16

PostPosted: Fri Oct 14, 2005 2:05 pm    Post subject: command to load .pbp Reply with quote

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
View user's profile Send private message AIM Address
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Oct 14, 2005 5:26 pm    Post subject: Reply with quote

sceLoadExec ?
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
RustyFunkNut



Joined: 26 Sep 2005
Posts: 17
Location: London, UK

PostPosted: Sat Oct 15, 2005 8:47 pm    Post subject: Re: command to load .pbp Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group