1
0
Fork 0

Change: "setting" console command now shows default value

pull/14061/head
glx22 2025-04-21 15:03:19 +02:00
parent 0cf7048a67
commit 4fa7724131
1 changed files with 3 additions and 2 deletions

View File

@ -1974,8 +1974,9 @@ void IConsoleGetSetting(const char *name, bool force_newgame)
std::string value = sd->FormatValue(object);
const IntSettingDesc *int_setting = sd->AsIntSetting();
auto [min_val, max_val] = int_setting->GetRange();
IConsolePrint(CC_INFO, "Current value for '{}' is '{}' (min: {}{}, max: {}).",
sd->GetName(), value, sd->flags.Test(SettingFlag::GuiZeroIsSpecial) ? "(0) " : "", min_val, max_val);
auto def_val = int_setting->GetDefaultValue();
IConsolePrint(CC_INFO, "Current value for '{}' is '{}' (min: {}{}, max: {}, def: {}).",
sd->GetName(), value, sd->flags.Test(SettingFlag::GuiZeroIsSpecial) ? "(0) " : "", min_val, max_val, def_val);
}
}