// call from KERNEL thread int nlhLoadDrivers(SceModuleInfo* modInfoPtr) { // libraries load where they want, patch workaround needed LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/ifhandle.prx"); // kernel LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_inet.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_apctl.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_resolver.prx"); FlushCaches(); //REVIEW: add error checks return 0; }
// call from KERNEL thread int adhocLoadDrivers(SceModuleInfo* modInfoPtr) { #ifdef FW3X sceUtilityLoadNetModule(PSP_NET_MODULE_COMMON); // AHMAN sceUtilityLoadNetModule(PSP_NET_MODULE_ADHOC); // AHMAN #else // libraries load where they want, patch workaround needed LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/ifhandle.prx"); // kernel LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/memab.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_adhoc_auth.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_adhoc.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_adhocctl.prx"); LoadAndStartAndPatch(modInfoPtr, "flash0:/kd/pspnet_adhoc_matching.prx"); FlushCaches(); #endif return 0; }