Creating DELAY..manually loading modules b4 game.....

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

Moderators: cheriff, TyRaNiD

Post Reply
ktan91
Posts: 3
Joined: Tue Jul 12, 2005 7:30 am

Creating DELAY..manually loading modules b4 game.....

Post by ktan91 »

OK...i can't figure out whats wrong..it should load the modules but it doesn't...and the printf r not showing up..
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&#40;"SDKTEST", 0x1000, 1, 1&#41;;   // 0x1000 = Kernel MODE
PSP_MAIN_THREAD_ATTR&#40;0&#41;; // 0 for kernel mode too


int main&#40;void&#41;
&#123;
    int exec_0=sceKernelLoadModule&#40;"ms0&#58;/TRAINERS/WIPEOUT/BOOT.BIN",0,0&#41;;
    printf&#40;"Loading Game"&#41;;
    int f;
    for&#40;f = 0; f < 1000; f++&#41; &#123;&#125;
    int exec_1=sceKernelLoadModule&#40;"ms0&#58;/common/prx/audiocodec.prx",0,0&#41;;
    int exec_2=sceKernelLoadModule&#40;"ms0&#58;/common/prx/cert_loader.prx",0,0&#41;;
    int exec_3=sceKernelLoadModule&#40;"ms0&#58;/common/prx/ifhandle.prx",0,0&#41;;
    int exec_4=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libatrac3plus.prx",0,0&#41;;
    int exec_5=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libbase64.prx",0,0&#41;;
    int exec_6=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libfont.prx",0,0&#41;;
    int exec_7=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libhttp_rfc.prx",0,0&#41;;
    int exec_8=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libparse_http.prx",0,0&#41;;
    int exec_9=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libparse_uri.prx",0,0&#41;;
    int exec_10=sceKernelLoadModule&#40;"ms0&#58;/common/prx/libssl.prx",0,0&#41;;
    int exec_11=sceKernelLoadModule&#40;"ms0&#58;/common/prx/memab.prx",0,0&#41;;
    int exec_12=sceKernelLoadModule&#40;"ms0&#58;/common/prx/mpeg.prx",0,0&#41;;
    int exec_13=sceKernelLoadModule&#40;"ms0&#58;/common/prx/mpegbase.prx",0,0&#41;;
    int exec_14=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet.prx",0,0&#41;;
    int exec_15=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_adhoc.prx",0,0&#41;;
    int exec_16=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_adhoc_auth.prx",0,0&#41;;
    int exec_17=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_adhocctl.prx",0,0&#41;;
    int exec_18=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_ap_dialog_dummy.prx",0,0&#41;;
    int exec_19=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_apctl.prx",0,0&#41;;
    int exec_20=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_inet.prx",0,0&#41;;
    int exec_21=sceKernelLoadModule&#40;"ms0&#58;/common/prx/pspnet_resolver.prx",0,0&#41;;
    int exec_22=sceKernelLoadModule&#40;"ms0&#58;/common/prx/sc_sascore.prx",0,0&#41;;
    int exec_23=sceKernelLoadModule&#40;"ms0&#58;/common/prx/videocodec.prx",0,0&#41;;
    printf&#40;"Loading Modules"&#41;;
    int e;
    for&#40;e = 0; e < 1000; e++&#41; &#123;&#125;
    sceKernelStartModule&#40;exec_23, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_22, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_21, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_20, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_19, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_18, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_17, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_16, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_15, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_14, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_13, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_12, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_11, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_10, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_9, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_8, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_7, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_6, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_5, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_4, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_3, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_2, 0, NULL, 0, NULL&#41;;
    sceKernelStartModule&#40;exec_1, 0, NULL, 0, NULL&#41;;
    printf&#40;"Starting Modules"&#41;;
    int g;
    for&#40;g = 0; g < 1000; g++&#41; &#123;&#125;
    printf&#40;"Starting Game"&#41;;
    int p;
    for&#40;p = 0; p < 1000; p++&#41; &#123;&#125;
    printf&#40;"Please Wait"&#41;;
    int i;
    for&#40;i = 0; i < 1000; i++&#41; &#123;&#125;
    sceKernelStartModule&#40;exec_0, 0, NULL, 0, NULL&#41;;
   
	return 0;
&#125;
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post by Warren »

Be careful on where this topic goes. I have half a mind to lock it already.
ktan91
Posts: 3
Joined: Tue Jul 12, 2005 7:30 am

Post by ktan91 »

lock it if someone says somehting bad...but im just trying to cheat in some games ;D (that i own of couse...)
Post Reply