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

Function add_html

include/init/html.h:323–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static size_t add_html(u8 id, int value, char *buffer, char *data)
324{
325 if(!buffer || !data) return 0;
326
327 char res_file[40];
328 sprintf(res_file, "%s/setup/setup%c.dat", WM_RES_PATH, id);
329
330 size_t size = read_file(res_file, data, 1023, 0);
331 if(size > 0)
332 {
333 char *pos = strstr(data, " ");
334 if(pos)
335 {
336 if((id == dat_AUDIOREC_FMT) || (id == dat_VIDEOREC_FMT))
337 sprintf(res_file, "%04x", value);
338 else
339 sprintf(res_file, "%04i", value);
340 memcpy(pos, res_file, 4);
341 }
342 concat(buffer, data);
343 }
344 return size;
345}
346
347static size_t add_radio_button(const char *name, int value, const char *id, const char *label, const char *sufix, bool checked, char *buffer)
348{

Callers 7

setup_formFunction · 0.85
get_param_sfoFunction · 0.85
ps3mapi_getmemFunction · 0.85
ps3mapi_setmemFunction · 0.85
game_listingFunction · 0.85
games_xml.hFile · 0.85

Calls 5

concatFunction · 0.85
sprintfFunction · 0.50
read_fileFunction · 0.50
strstrFunction · 0.50
memcpyFunction · 0.50

Tested by

no test coverage detected