Unload Module

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

Moderators: cheriff, TyRaNiD

Post Reply
Ghozt
Posts: 34
Joined: Mon Mar 13, 2006 8:37 pm

Unload Module

Post by Ghozt »

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!
placasoft
Posts: 53
Joined: Mon Mar 28, 2005 10:53 am

Post by placasoft »

Code: Select all

SceModule *kmods;

kmods = sceKernelFindModuleByName("sceUtility_Driver");
sceKernelUnloadModule(kmods->modid);
kmods->modid = 0;
Hafe fun ... should work =/
Ghozt
Posts: 34
Joined: Mon Mar 13, 2006 8:37 pm

Post by Ghozt »

placasoft wrote:

Code: Select all

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??
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

youll need 1.5 to take advantage of module stuff
also make sure your stoping before unloading first
10011011 00101010 11010111 10001001 10111010
Post Reply