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 

Unload Module

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



Joined: 13 Mar 2006
Posts: 34

PostPosted: Thu Jun 08, 2006 11:43 pm    Post subject: Unload Module Reply with quote

I can't get the sceKernelStopModule and sceKernelUnloadModule to work. I have enabled USB but when you quit the app I want to unload the modules. Can anyone just write a simple example of unloading modules?

Thanks!
Back to top
View user's profile Send private message
placasoft



Joined: 28 Mar 2005
Posts: 53

PostPosted: Fri Jun 09, 2006 12:04 am    Post subject: Reply with quote

Code:

SceModule *kmods;

kmods = sceKernelFindModuleByName("sceUtility_Driver");
sceKernelUnloadModule(kmods->modid);
kmods->modid = 0;


Hafe fun ... should work =/
Back to top
View user's profile Send private message
Ghozt



Joined: 13 Mar 2006
Posts: 34

PostPosted: Fri Jun 09, 2006 12:23 am    Post subject: Reply with quote

placasoft wrote:
Code:

SceModule *kmods;

kmods = sceKernelFindModuleByName("sceUtility_Driver");
sceKernelUnloadModule(kmods->modid);
kmods->modid = 0;


Hafe fun ... should work =/


My PSP freezes when I use that. But maybe that is because I'm running it on a 2.0 psp??

btw. If you unload "sceUtility_Driver", does it unload all the .prx files needed for usb automatically??
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Fri Jun 09, 2006 6:46 am    Post subject: Reply with quote

youll need 1.5 to take advantage of module stuff
also make sure your stoping before unloading first
_________________
10011011 00101010 11010111 10001001 10111010
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