Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff, TyRaNiD
-
mafia1ft
- Posts: 17
- Joined: Wed Mar 29, 2006 4:45 pm
Post
by mafia1ft »
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: Select all
#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;
}
-
sg57
- Posts: 144
- Joined: Fri Oct 14, 2005 2:26 pm
Post
by sg57 »
Pardon my french, but can't that LoadExec function only load the disc0:/..../BOOT.BIN?
-
moonlight
- Posts: 567
- Joined: Wed Oct 26, 2005 7:46 pm
Post
by moonlight »
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: Select all
#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;
}
-
mafia1ft
- Posts: 17
- Joined: Wed Mar 29, 2006 4:45 pm
Post
by mafia1ft »
that don't work for me
sorry i'm a noob what file should be in the folder that has the eboot