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 

coding help

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



Joined: 29 Mar 2006
Posts: 17

PostPosted: Tue Aug 22, 2006 8:27 pm    Post subject: coding help Reply with quote

i'am trying to make a app that will auto load a eboot.pbp here is the code can some debug it, it look fine to me but it still doesn't work

Code:
#include <pspkernel.h>
#include <pspdebug.h>
#include <psppower.h>

#define printf pspDebugScreenPrintf

/* Define the module info section */
PSP_MODULE_INFO("EBOOTLOADER", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
int main(int argc, char *argv[])

{
int sceKernelLoadExec(const char *file, struct SceKernelLoadExecParam *param);

   pspDebugScreenInit();
   pspDebugScreenPrintf("Loading EBOOT..\n");
   sceKernelLoadExec("ms0:/PSP/GAME/Doom/EBOOT.PBP", 0);

   return 0;
}
Back to top
View user's profile Send private message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Tue Aug 22, 2006 9:29 pm    Post subject: Reply with quote

Pardon my french, but can't that LoadExec function only load the disc0:/..../BOOT.BIN?
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Tue Aug 22, 2006 9:40 pm    Post subject: Reply with quote

sg57 wrote:
Pardon my french, but can't that LoadExec function only load the disc0:/..../BOOT.BIN?


In kernel mode it can execute things from memory sticks.

Correct code:

Code:


#include <pspkernel.h>
#include <pspdebug.h>
#include <psppower.h>
#include <psploadexec.h>

#define printf pspDebugScreenPrintf

/* Define the module info section */
PSP_MODULE_INFO("EBOOTLOADER", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
int main(int argc, char *argv[])
{

   pspDebugScreenInit();
   pspDebugScreenPrintf("Loading EBOOT..\n");
   sceKernelLoadExec("ms0:/PSP/GAME/Doom/EBOOT.PBP", 0);

   return 0;
}
Back to top
View user's profile Send private message
mafia1ft



Joined: 29 Mar 2006
Posts: 17

PostPosted: Tue Aug 22, 2006 9:52 pm    Post subject: Reply with quote

that don't work for me
sorry i'm a noob what file should be in the folder that has the eboot
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