forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ktan91



Joined: 12 Jul 2005
Posts: 3

PostPosted: Tue Jul 12, 2005 7:34 am    Post subject: Creating DELAY..manually loading modules b4 game..... Reply with quote

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:

#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;
}
Back to top
View user's profile Send private message
Warren



Joined: 24 Jan 2004
Posts: 173
Location: San Diego, CA

PostPosted: Tue Jul 12, 2005 9:49 am    Post subject: Reply with quote

Be careful on where this topic goes. I have half a mind to lock it already.
Back to top
View user's profile Send private message
ktan91



Joined: 12 Jul 2005
Posts: 3

PostPosted: Tue Jul 12, 2005 10:12 am    Post subject: Reply with quote

lock it if someone says somehting bad...but im just trying to cheat in some games ;D (that i own of couse...)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group