make the verbosity toggle less weird:

right now, enabling verbosity via -v causes it to change the config parameter.

Now it doesn't changet the config parameter unless the switch is actually flicked manually
This commit is contained in:
radius 2017-08-30 21:42:29 -05:00
parent 85e2a11845
commit e40ebccbdd
2 changed files with 7 additions and 12 deletions

View File

@ -3567,8 +3567,11 @@ bool config_save_file(const char *path)
}
#endif
config_set_bool(conf, "log_verbosity",
verbosity_is_enabled());
if (!retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL))
{
config_set_bool(conf, "log_verbosity",
verbosity_is_enabled());
}
config_set_bool(conf, "perfcnt_enable",
rarch_ctl(RARCH_CTL_IS_PERFCNT_ENABLE, NULL));

View File

@ -1697,19 +1697,11 @@ void general_write_handler(void *data)
settings->uints.input_joypad_map[4] = *setting->value.target.integer;
break;
case MENU_ENUM_LABEL_LOG_VERBOSITY:
if (setting
&& setting->value.target.boolean
&& *setting->value.target.boolean)
if (!verbosity_is_enabled())
verbosity_enable();
else
verbosity_disable();
if (setting
&& setting->value.target.boolean
&& *setting->value.target.boolean)
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL);
else
retroarch_override_setting_unset(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL);
retroarch_override_setting_unset(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL);
break;
case MENU_ENUM_LABEL_VIDEO_SMOOTH:
video_driver_set_filtering(1, settings->bools.video_smooth);