MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / read_settings

Function read_settings

include/setup.h:1200–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198}
1199
1200static void read_settings(void)
1201{
1202 _memset(webman_config, sizeof(WebmanCfg));
1203
1204 webman_config->version = 0x1337;
1205
1206 webman_config->usb0 = 1;
1207 webman_config->usb1 = 1;
1208 //webman_config->usb2 = 0;
1209 //webman_config->usb3 = 0;
1210 webman_config->usb6 = 1;
1211 //webman_config->usb7 = 0;
1212
1213 //webman_config->dev_sd = 0;
1214 //webman_config->dev_ms = 0;
1215 //webman_config->dev_cf = 0;
1216
1217 #ifdef USE_NTFS
1218 webman_config->ntfs = 1; // use internal prepNTFS to scan content
1219 #endif
1220
1221 #ifdef MOUNT_ROMS
1222 webman_config->roms = isDir(PKGLAUNCH_DIR); f1_len = webman_config->roms ? 13 : 11;
1223 #endif
1224
1225 //webman_config->lastp = 0; //disable last play
1226 //webman_config->autob = 0; //disable check for AUTOBOOT.ISO
1227 //webman_config->delay = 0; //don't delay loading of AUTOBOOT.ISO/last-game (Disc Auto-start)
1228
1229 //webman_config->bootd = 0; //don't wait for any USB device to be ready
1230 webman_config->boots = 3; //wait 3 additional seconds for each selected USB device to be ready
1231
1232 //webman_config->nogrp = 0; //group content on XMB
1233 //webman_config->wmstart = 0; //enable start up message (webMAN Loaded!)
1234 //webman_config->tid = 0; //don't include the ID as part of the title of the game
1235 //webman_config->nosetup = 0; //enable webMAN Setup entry in "webMAN Games"
1236
1237#ifdef COBRA_ONLY
1238 webman_config->cmask = 0;
1239#else
1240 webman_config->cmask = (PSP | PS1 | BLU | DVD);
1241#endif
1242
1243 webman_config->poll = 1; //disable USB polling
1244 //webman_config->auto_power_off = 0; //enable prevent auto power off
1245
1246 //webman_config->nopad = 0; //enable all PAD shortcuts
1247 //webman_config->nocov = 0; //enable multiMAN covers (0 = Use MM covers, 1 = Use ICON0.PNG, 2 = No game icons, 3 = Online Covers)
1248 //webman_config->nobeep = 0; //enable beep on reboot / shutdown / disable syscall
1249
1250 webman_config->fanc = ENABLED; //fan control enabled
1251 //webman_config->man_speed = 0; //0=dynamic fan control mode, >0 set manual fan speed in %
1252 webman_config->dyn_temp = MY_TEMP; //°C target temperature for dynamic fan control
1253 webman_config->man_rate = 35; //% manual fan speed
1254 webman_config->ps2_rate = 40; //% ps2 fan speed
1255
1256 if(payload_ps3hen) webman_config->man_speed = 0x5A; // ps3hen default is 35% manual
1257/*

Callers 2

wwwd_threadFunction · 0.85
reset_settingsFunction · 0.85

Calls 11

is_app_home_onxmbFunction · 0.85
get_system_languageFunction · 0.85
strcopyFunction · 0.85
get_eid0_idpsFunction · 0.85
save_settingsFunction · 0.85
_memsetFunction · 0.50
isDirFunction · 0.50
file_existsFunction · 0.50
read_fileFunction · 0.50
islikeFunction · 0.50
sprintfFunction · 0.50

Tested by

no test coverage detected