|
@@ -13,14 +13,14 @@ static bool CanUpdateServiceInterval(Veh
|
|
|
static void UpdateServiceInterval(VehicleType type, int32 new_value);
|
|
|
|
|
|
static const SettingVariant _company_settings_table[] = {
|
|
|
[post-amble]
|
|
|
};
|
|
|
[templates]
|
|
|
SDT_BOOL = SDT_BOOL(CompanySettings, $var, $flags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
SDT_VAR = SDT_VAR(CompanySettings, $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
|
|
|
SDT_BOOL = SDT_BOOL(CompanySettings, $var, $flags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup, $extver),
|
|
|
SDT_VAR = SDT_VAR(CompanySettings, $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup, $extver),
|
|
|
|
|
|
[validation]
|
|
|
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for CompanySettings.$var exceeds storage size");
|
|
|
|
|
|
[defaults]
|
|
|
flags = SF_PER_COMPANY
|
|
@@ -33,12 +33,13 @@ post_cb = nullptr
|
|
|
load = nullptr
|
|
|
from = SL_MIN_VERSION
|
|
|
to = SL_MAX_VERSION
|
|
|
cat = SC_ADVANCED
|
|
|
extra = 0
|
|
|
startup = false
|
|
|
extver = SlXvFeatureTest()
|
|
|
|
|
|
|
|
|
|
|
|
[SDT_BOOL]
|
|
|
var = engine_renew
|
|
|
def = true
|