not sure if its right..but im trying to load modules first..then load the boot.bin..by doing a delay..but i don't kno how..is there a way to load them..and after they r done it loads boot.bin?
note:this is a legal thing b/c i own the game and i am using the boot.bin from the game so i can edit to load trainers etc...so this shouldn't be piracy..im just trying to get the game load first atlest..
Code: Select all
#include <pspkernel.h>
#include <pspdebug.h>
#include <stdlib.h>
#include <string.h>
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("SDKTEST", 0x1000, 1, 1); // 0x1000 = Kernel MODE
PSP_MAIN_THREAD_ATTR(0); // 0 for kernel mode too
int main(void)
{
int exec_0=sceKernelLoadModule("ms0:/TRAINERS/WIPEOUT/BOOT.BIN",0,0);
printf("Loading Game");
int f;
for(f = 0; f < 1000; f++) {}
int exec_1=sceKernelLoadModule("ms0:/common/prx/audiocodec.prx",0,0);
int exec_2=sceKernelLoadModule("ms0:/common/prx/cert_loader.prx",0,0);
int exec_3=sceKernelLoadModule("ms0:/common/prx/ifhandle.prx",0,0);
int exec_4=sceKernelLoadModule("ms0:/common/prx/libatrac3plus.prx",0,0);
int exec_5=sceKernelLoadModule("ms0:/common/prx/libbase64.prx",0,0);
int exec_6=sceKernelLoadModule("ms0:/common/prx/libfont.prx",0,0);
int exec_7=sceKernelLoadModule("ms0:/common/prx/libhttp_rfc.prx",0,0);
int exec_8=sceKernelLoadModule("ms0:/common/prx/libparse_http.prx",0,0);
int exec_9=sceKernelLoadModule("ms0:/common/prx/libparse_uri.prx",0,0);
int exec_10=sceKernelLoadModule("ms0:/common/prx/libssl.prx",0,0);
int exec_11=sceKernelLoadModule("ms0:/common/prx/memab.prx",0,0);
int exec_12=sceKernelLoadModule("ms0:/common/prx/mpeg.prx",0,0);
int exec_13=sceKernelLoadModule("ms0:/common/prx/mpegbase.prx",0,0);
int exec_14=sceKernelLoadModule("ms0:/common/prx/pspnet.prx",0,0);
int exec_15=sceKernelLoadModule("ms0:/common/prx/pspnet_adhoc.prx",0,0);
int exec_16=sceKernelLoadModule("ms0:/common/prx/pspnet_adhoc_auth.prx",0,0);
int exec_17=sceKernelLoadModule("ms0:/common/prx/pspnet_adhocctl.prx",0,0);
int exec_18=sceKernelLoadModule("ms0:/common/prx/pspnet_ap_dialog_dummy.prx",0,0);
int exec_19=sceKernelLoadModule("ms0:/common/prx/pspnet_apctl.prx",0,0);
int exec_20=sceKernelLoadModule("ms0:/common/prx/pspnet_inet.prx",0,0);
int exec_21=sceKernelLoadModule("ms0:/common/prx/pspnet_resolver.prx",0,0);
int exec_22=sceKernelLoadModule("ms0:/common/prx/sc_sascore.prx",0,0);
int exec_23=sceKernelLoadModule("ms0:/common/prx/videocodec.prx",0,0);
printf("Loading Modules");
int e;
for(e = 0; e < 1000; e++) {}
sceKernelStartModule(exec_23, 0, NULL, 0, NULL);
sceKernelStartModule(exec_22, 0, NULL, 0, NULL);
sceKernelStartModule(exec_21, 0, NULL, 0, NULL);
sceKernelStartModule(exec_20, 0, NULL, 0, NULL);
sceKernelStartModule(exec_19, 0, NULL, 0, NULL);
sceKernelStartModule(exec_18, 0, NULL, 0, NULL);
sceKernelStartModule(exec_17, 0, NULL, 0, NULL);
sceKernelStartModule(exec_16, 0, NULL, 0, NULL);
sceKernelStartModule(exec_15, 0, NULL, 0, NULL);
sceKernelStartModule(exec_14, 0, NULL, 0, NULL);
sceKernelStartModule(exec_13, 0, NULL, 0, NULL);
sceKernelStartModule(exec_12, 0, NULL, 0, NULL);
sceKernelStartModule(exec_11, 0, NULL, 0, NULL);
sceKernelStartModule(exec_10, 0, NULL, 0, NULL);
sceKernelStartModule(exec_9, 0, NULL, 0, NULL);
sceKernelStartModule(exec_8, 0, NULL, 0, NULL);
sceKernelStartModule(exec_7, 0, NULL, 0, NULL);
sceKernelStartModule(exec_6, 0, NULL, 0, NULL);
sceKernelStartModule(exec_5, 0, NULL, 0, NULL);
sceKernelStartModule(exec_4, 0, NULL, 0, NULL);
sceKernelStartModule(exec_3, 0, NULL, 0, NULL);
sceKernelStartModule(exec_2, 0, NULL, 0, NULL);
sceKernelStartModule(exec_1, 0, NULL, 0, NULL);
printf("Starting Modules");
int g;
for(g = 0; g < 1000; g++) {}
printf("Starting Game");
int p;
for(p = 0; p < 1000; p++) {}
printf("Please Wait");
int i;
for(i = 0; i < 1000; i++) {}
sceKernelStartModule(exec_0, 0, NULL, 0, NULL);
return 0;
}