static void parse_plugin(char *linebuf) { char *p; int enabled = 1; for(p=linebuf; *p != '\0'; p++) { if(ourisspace(*p)) { *p++ = '\0'; enabled = 0; while(*p != '\0' && ourisspace(*p)) { p++; } if(*p == '1') { enabled = 1; } break; } } if(enabled) { load_start_module(linebuf); } }
void load_psplink_user(const char *bootpath) { char prx_path[MAXPATHLEN]; strcpy(prx_path, bootpath); strcat(prx_path, "psplink_user.prx"); load_start_module(prx_path, 0, NULL); }
SceUID load_gdb(const char *bootpath, int argc, char **argv) { char prx_path[MAXPATHLEN]; strcpy(prx_path, bootpath); strcat(prx_path, "usbgdb.prx"); g_context.gdb = 1; return load_start_module(prx_path, argc, argv); }
static void config_modload(struct ConfigContext *ctx, const char *szVal, unsigned int iVal) { (void) load_start_module(szVal, 0, NULL); }