| 37 | #define DEBUGMENU (1<<15) |
| 38 | |
| 39 | static void setup_parse_settings(char *param) |
| 40 | { |
| 41 | if(!strstr(param, "&ic=")) return; |
| 42 | |
| 43 | _memset(webman_config, sizeof(WebmanCfg) - 12); // reset wm_config except resource_id[10] |
| 44 | |
| 45 | get_param("&autop=", webman_config->autoboot_path, param, 255); |
| 46 | |
| 47 | if((webman_config->autoboot_path[0] != '/') && !islike(webman_config->autoboot_path, "http")) strcopy(webman_config->autoboot_path, DEFAULT_AUTOBOOT_PATH); |
| 48 | |
| 49 | webman_config->usb0 = IS_MARKED("u0=1"); |
| 50 | webman_config->usb1 = IS_MARKED("u1=1"); |
| 51 | webman_config->usb2 = IS_MARKED("u2=1"); |
| 52 | webman_config->usb3 = IS_MARKED("u3=1"); |
| 53 | webman_config->usb6 = IS_MARKED("u6=1"); |
| 54 | webman_config->usb7 = IS_MARKED("u7=1"); |
| 55 | |
| 56 | webman_config->dev_sd = IS_MARKED("x0=1"); |
| 57 | webman_config->dev_ms = IS_MARKED("x1=1"); |
| 58 | webman_config->dev_cf = IS_MARKED("x2=1"); |
| 59 | webman_config->npdrm = IS_MARKED("np=1"); |
| 60 | |
| 61 | #ifdef USE_NTFS |
| 62 | webman_config->ntfs = IS_MARKED("xn=1"); |
| 63 | #endif |
| 64 | |
| 65 | webman_config->lastp = IS_MARKED("lp=1"); |
| 66 | webman_config->autob = IS_MARKED("ab=1"); |
| 67 | webman_config->delay = IS_MARKED("dy=1"); |
| 68 | |
| 69 | #ifdef COBRA_ONLY |
| 70 | webman_config->nosnd0 = IS_MARKED("sn=1"); |
| 71 | #endif |
| 72 | |
| 73 | webman_config->nobeep = IS_UNMARKED("nb=1"); |
| 74 | webman_config->wm_proxy = IS_UNMARKED("wp=1"); |
| 75 | webman_config->msg_icon = IS_UNMARKED("mn=1"); |
| 76 | #ifdef PLAY_MUSIC |
| 77 | webman_config->music = get_valuen(param, "&ms=", 0, 2); |
| 78 | #endif |
| 79 | #ifdef PKG_HANDLER |
| 80 | webman_config->auto_install_pkg = IS_UNMARKED("ai=1"); |
| 81 | #endif |
| 82 | #ifdef UNLOCK_SAVEDATA |
| 83 | webman_config->unlock_savedata = IS_MARKED("up=1"); |
| 84 | #endif |
| 85 | #ifdef ARTEMIS_PRX |
| 86 | webman_config->artemis = IS_MARKED("ar=1"); |
| 87 | #endif |
| 88 | #ifdef PS3MON_SPRX |
| 89 | webman_config->ps3mon = IS_MARKED("pm=1"); |
| 90 | if(webman_config->ps3mon) |
| 91 | load_vsh_plugin(PS3MON_SPRX); |
| 92 | else |
| 93 | unload_vsh_plugin(PS3MON_SPRX); |
| 94 | #endif |
| 95 | |
| 96 | // show qr code |
no test coverage detected