coding help

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
mafia1ft
Posts: 17
Joined: Wed Mar 29, 2006 4:45 pm

coding help

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&#40;"EBOOTLOADER", 0x1000, 1, 1&#41;;
PSP_MAIN_THREAD_ATTR&#40;0&#41;;
int main&#40;int argc, char *argv&#91;&#93;&#41;

&#123;
int sceKernelLoadExec&#40;const char *file, struct SceKernelLoadExecParam *param&#41;;

   pspDebugScreenInit&#40;&#41;;
   pspDebugScreenPrintf&#40;"Loading EBOOT..\n"&#41;;
   sceKernelLoadExec&#40;"ms0&#58;/PSP/GAME/Doom/EBOOT.PBP", 0&#41;;

   return 0;
&#125; 
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&#40;"EBOOTLOADER", 0x1000, 1, 1&#41;;
PSP_MAIN_THREAD_ATTR&#40;0&#41;;
int main&#40;int argc, char *argv&#91;&#93;&#41;
&#123;

   pspDebugScreenInit&#40;&#41;;
   pspDebugScreenPrintf&#40;"Loading EBOOT..\n"&#41;;
   sceKernelLoadExec&#40;"ms0&#58;/PSP/GAME/Doom/EBOOT.PBP", 0&#41;;

   return 0;
&#125;
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
Post Reply