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 

Load Prx?

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



Joined: 24 Feb 2008
Posts: 31

PostPosted: Thu Mar 13, 2008 5:08 am    Post subject: Load Prx? Reply with quote

i want do an application EBOOT to load a prx when i press a determinate button, but don't work(i have the corrects functions to work).

Code:
      if (pad.Buttons & PSP_CTRL_CROSS)
{
loadStartModule("xxx.prx", 0, NULL);
      
}
Back to top
View user's profile Send private message
JumpR



Joined: 10 Feb 2008
Posts: 25

PostPosted: Thu Mar 13, 2008 8:01 am    Post subject: Reply with quote

Could you post a more complete code, like the loadStartModule function?
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Thu Mar 13, 2008 8:23 am    Post subject: Reply with quote

Code:
int loadStartModule(const char *name, int argc, char **argv)
{
   SceUID modid;
   int status;
   char args[128];
   int len;

   modid = sceKernelLoadModule(name, 0, NULL);
   if(modid >= 0)
   {
      len = build_args(args, name, argc, argv);
      modid = sceKernelStartModule(modid, len, (void *) args, &status, NULL);
   }
   else
   {
        pspDebugScreenSetTextColor(rosso);     
      printf("Error loading module %s\n", name);
   }

   return modid;
}
Back to top
View user's profile Send private message
JumpR



Joined: 10 Feb 2008
Posts: 25

PostPosted: Thu Mar 13, 2008 8:35 am    Post subject: Reply with quote

Just use this:
Code:
pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Thu Mar 13, 2008 8:47 am    Post subject: Reply with quote

JumpR wrote:
Just use this:
Code:
pspSdkLoadStartModule("ms0:/whatever.prx", PSP_MEMORY_PARTITION_KERNEL);

I'll try,thanks you.
Back to top
View user's profile Send private message
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