Skip to content
Snippets Groups Projects
Commit 051fc225 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Make the video_mode and ciolib_mode out params option (may be NULL)

parent da4573b9
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -26,12 +26,14 @@ void read_uifc_ini(const char* path, uifcapi_t* uifc, int* ciolib_mode, enum tex
FILE* fp = iniOpenFile(path, /* update: */false);
const char* section = ROOT_SECTION;
*video_mode = iniReadInteger(fp, section, "video_mode", *video_mode);
if (video_mode != NULL)
*video_mode = iniReadInteger(fp, section, "video_mode", *video_mode);
uifc->mode = iniReadInteger(fp, section, "uifc_mode", uifc->mode);
uifc->scrn_len = iniReadInteger(fp, section, "lines", uifc->scrn_len);
uifc->insert_mode = iniReadBool(fp, section, "insert", uifc->insert_mode);
uifc->esc_delay = iniReadInteger(fp, section, "esc_delay", uifc->esc_delay);
*ciolib_mode = iniReadInteger(fp, section, "ciolib_mode", *ciolib_mode);
if (ciolib_mode != NULL)
*ciolib_mode = iniReadInteger(fp, section, "ciolib_mode", *ciolib_mode);
ciolib_initial_scaling = iniReadFloat(fp, section, "scaling", ciolib_initial_scaling);
if (fp != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment