| 1176 | } |
| 1177 | |
| 1178 | static int save_settings(void) |
| 1179 | { |
| 1180 | #ifdef COBRA_ONLY |
| 1181 | apply_remaps(); // update remaps on startup / save settngs |
| 1182 | #endif |
| 1183 | |
| 1184 | #ifdef MUTE_SND0 |
| 1185 | mute_snd0(webman_config->nosnd0 != prev_nosnd0); |
| 1186 | #endif |
| 1187 | |
| 1188 | #ifdef PHOTO_GUI |
| 1189 | photo_gui = !webman_config->launchpad_xml; |
| 1190 | if(photo_gui) { system_call_3(SC_COBRA_SYSCALL8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_PHOTO_GUI, (u64)photo_gui); } |
| 1191 | #endif |
| 1192 | |
| 1193 | #ifdef USE_NTFS |
| 1194 | root_check = true; |
| 1195 | #endif |
| 1196 | |
| 1197 | return save_file(WM_CONFIG_FILE, (char*)wmconfig, sizeof(WebmanCfg)); |
| 1198 | } |
| 1199 | |
| 1200 | static void read_settings(void) |
| 1201 | { |
no test coverage detected