Don't enable 'read_cfg' too when 'full' is set in MANGOHUD_CONFIG

Could use OVERLAY_PARAM_INTERNAL or something similar but currently
less code to just save the boolean and reset.
pull/43/head
jackun 4 years ago
parent 8f66bd7d87
commit d78622a322
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -219,6 +219,7 @@ parse_overlay_env(struct overlay_params *params,
while ((num = parse_string(env, key, value)) != 0) {
env += num;
if (!strcmp("full", key)) {
bool read_cfg = params->enabled[OVERLAY_PARAM_ENABLED_read_cfg];
#define OVERLAY_PARAM_BOOL(name) \
params->enabled[OVERLAY_PARAM_ENABLED_##name] = 1;
#define OVERLAY_PARAM_CUSTOM(name)
@ -226,6 +227,7 @@ parse_overlay_env(struct overlay_params *params,
#undef OVERLAY_PARAM_BOOL
#undef OVERLAY_PARAM_CUSTOM
params->enabled[OVERLAY_PARAM_ENABLED_crosshair] = 0;
params->enabled[OVERLAY_PARAM_ENABLED_read_cfg] = read_cfg;
}
#define OVERLAY_PARAM_BOOL(name) \
if (!strcmp(#name, key)) { \

Loading…
Cancel
Save