| View previous topic :: View next topic |
| Author |
Message |
mafia1ft
Joined: 29 Mar 2006 Posts: 17
|
Posted: Tue Aug 22, 2006 8:27 pm Post subject: coding help |
|
|
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 |
|
 |
sg57
Joined: 14 Oct 2005 Posts: 154
|
Posted: Tue Aug 22, 2006 9:29 pm Post subject: |
|
|
| Pardon my french, but can't that LoadExec function only load the disc0:/..../BOOT.BIN? |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Tue Aug 22, 2006 9:40 pm Post subject: |
|
|
| 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 |
|
 |
mafia1ft
Joined: 29 Mar 2006 Posts: 17
|
Posted: Tue Aug 22, 2006 9:52 pm Post subject: |
|
|
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 |
|
 |
|