Codechange: move misc settings to std::string

This commit is contained in:
rubidium42
2021-04-28 17:32:33 +02:00
committed by rubidium42
parent 77330d09fd
commit 95386dc2b8
7 changed files with 37 additions and 45 deletions

View File

@@ -23,7 +23,6 @@ static const SettingDescGlobVarList _misc_settings[] = {
SDTG_LIST = SDTG_LIST($name, $type, $length, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
SDTG_MMANY = SDTG_MMANY($name, $type, $flags, $guiflags, $var, $def, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $guiflags, $var, $def, $max, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
SDTG_STR = SDTG_STR($name, $type, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
SDTG_SSTR = SDTG_SSTR($name, $type, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
SDTG_BOOL = SDTG_BOOL($name, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
@@ -156,16 +155,16 @@ var = _cur_resolution
def = ""0,0""
cat = SC_BASIC
[SDTG_STR]
[SDTG_SSTR]
name = ""screenshot_format""
type = SLE_STRB
type = SLE_STR
var = _screenshot_format_name
def = nullptr
cat = SC_EXPERT
[SDTG_STR]
[SDTG_SSTR]
name = ""savegame_format""
type = SLE_STRB
type = SLE_STR
var = _savegame_format
def = nullptr
cat = SC_EXPERT
@@ -308,16 +307,16 @@ min = 0
max = 0xFF
cat = SC_BASIC
[SDTG_STR]
[SDTG_SSTR]
name = ""keyboard""
type = SLE_STRB
type = SLE_STR
var = _keyboard_opt[0]
def = nullptr
cat = SC_EXPERT
[SDTG_STR]
[SDTG_SSTR]
name = ""keyboard_caps""
type = SLE_STRB
type = SLE_STR
var = _keyboard_opt[1]
def = nullptr
cat = SC_EXPERT