Skip to content

Commit

Permalink
show current value in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Nov 21, 2020
1 parent 5102c6c commit c16eb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ void Config::showDialog(const std::string& coreName, Input& input)
const char* value = var._options[selections[i]].c_str();
if (!rc_libretro_is_setting_allowed(disallowed_settings, var._key.c_str(), value))
{
if (var._selected < (int)var._labels.size())
value = var._labels[var._selected].c_str();
if (selections[i] < (int)var._labels.size())
value = var._labels[selections[i]].c_str();

std::string setting = "set " + var._name + " to " + value;
if (!RA_WarnDisableHardcore(setting.c_str()))
Expand Down

0 comments on commit c16eb24

Please sign in to comment.