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 

Help Loading Modules Please

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



Joined: 30 Dec 2009
Posts: 1

PostPosted: Wed Dec 30, 2009 11:26 pm    Post subject: Help Loading Modules Please Reply with quote

Hi Everyone :)
Im having a go at PS2 dev, I am using xlink and ps2link at the min. I have created some test code using the hddlib examples but it seems to have trouble loading my modules.

Here is what xLink says for each module:
loadmodule: fname host:../../iop/modules/iomanX.irx args 0 arg
loadmodule: id -203, ret 0
loadmodule: fname host:../../iop/modules/fileXio.irx args 0 arg

Here is part of the code im using:
Code:

void loadModules()
{
   static char hddarg[] = "-o" "\0" "4" "\0" "-n" "\0" "20";
   static char pfsarg[] = "-m" "\0" "4" "\0" "-o" "\0" "10" "\0" "-n" "\0" "40" /*"\0" "-debug"*/;
   SifLoadModule("host:local/iop/modules/poweroff.irx", 0, NULL);
   SifLoadModule("host:../../iop/modules/iomanX.irx", 0, NULL);
   SifLoadModule("host:../../iop/modules/fileXio.irx", 0, NULL);
   SifLoadModule("host:../../iop/modules/ps2dev9.irx", 0, NULL);
   SifLoadModule("host:../../iop/modules/ps2atad.irx", 0, NULL);
   SifLoadModule("host:../../iop/modules/ps2hdd.irx", sizeof(hddarg), hddarg);
   SifLoadModule("host:../../iop/modules/ps2fs.irx", sizeof(pfsarg), pfsarg);
}


I just call this function right after "SifInitRpc(0);" inside my int main.

However xLink just throws up 7 "Error" dialogs, does anyone know why it wont load these modules?
Thank you

EDIT:
Problem solved, I changed the module loading function to look like this:
Code:

void loadModules()
{
   static char hddarg[] = "-o" "\0" "4" "\0" "-n" "\0" "20";
   static char pfsarg[] = "-m" "\0" "4" "\0" "-o" "\0" "10" "\0" "-n" "\0" "40" /*"\0" "-debug"*/;
   SifLoadModule("host0:poweroff.irx", 0, NULL);
   SifLoadModule("host0:iomanX.irx", 0, NULL);
   SifLoadModule("host0:fileXio.irx", 0, NULL);
   SifLoadModule("host0:ps2dev9.irx", 0, NULL);
   SifLoadModule("host0:ps2atad.irx", 0, NULL);
   SifLoadModule("host0:ps2hdd.irx", sizeof(hddarg), hddarg);
   SifLoadModule("host0:ps2fs.irx", sizeof(pfsarg), pfsarg);
}
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 -> PS2 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