|
@@ -16,15 +16,15 @@ static constexpr std::initializer_list<c
|
|
|
static_assert(_locale_currencies.size() == CURRENCY_END);
|
|
|
|
|
|
static const SettingVariant _locale_settings_table[] = {
|
|
|
[post-amble]
|
|
|
};
|
|
|
[templates]
|
|
|
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $var, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
SDT_OMANY = SDT_OMANY(GameSettings, $var, $type, $flags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $load, $cat, $extra, $startup),
|
|
|
SDT_SSTR = SDT_SSTR(GameSettings, $var, $type, $flags, $def, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $var, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup, $extver),
|
|
|
SDT_OMANY = SDT_OMANY(GameSettings, $var, $type, $flags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $load, $cat, $extra, $startup, $extver),
|
|
|
SDT_SSTR = SDT_SSTR(GameSettings, $var, $type, $flags, $def, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup, $extver),
|
|
|
|
|
|
[validation]
|
|
|
SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
|
|
|
SDT_OMANY = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
|
|
|
|
|
|
[defaults]
|
|
@@ -38,12 +38,13 @@ post_cb = nullptr
|
|
|
load = nullptr
|
|
|
from = SL_MIN_VERSION
|
|
|
to = SL_MAX_VERSION
|
|
|
cat = SC_ADVANCED
|
|
|
extra = 0
|
|
|
startup = false
|
|
|
extver = SlXvFeatureTest()
|
|
|
|
|
|
|
|
|
[SDT_OMANY]
|
|
|
var = locale.currency
|
|
|
type = SLE_UINT8
|
|
|
from = SLV_97
|