| View previous topic :: View next topic |
| Author |
Message |
Ghozt
Joined: 13 Mar 2006 Posts: 34
|
Posted: Thu Jun 08, 2006 11:43 pm Post subject: Unload Module |
|
|
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 |
|
 |
placasoft
Joined: 28 Mar 2005 Posts: 53
|
Posted: Fri Jun 09, 2006 12:04 am Post subject: |
|
|
| Code: |
SceModule *kmods;
kmods = sceKernelFindModuleByName("sceUtility_Driver");
sceKernelUnloadModule(kmods->modid);
kmods->modid = 0;
|
Hafe fun ... should work =/ |
|
| Back to top |
|
 |
Ghozt
Joined: 13 Mar 2006 Posts: 34
|
Posted: Fri Jun 09, 2006 12:23 am Post subject: |
|
|
| 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 |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Fri Jun 09, 2006 6:46 am Post subject: |
|
|
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 |
|
 |
|