Adding of _t to (u)int types, and WChar to char32_t

See: eaae0bb5e
This commit is contained in:
Jonathan G Rennison
2024-01-07 16:41:53 +00:00
parent 55d78a23be
commit 97e6f3062e
655 changed files with 7555 additions and 7555 deletions

View File

@@ -10,15 +10,15 @@
[pre-amble]
static const uint GAME_DIFFICULTY_NUM = 18;
static const std::array<std::string, GAME_DIFFICULTY_NUM> _old_diff_settings{"max_no_competitors", "competitor_start_time", "number_towns", "industry_density", "max_loan", "initial_interest", "vehicle_costs", "competitor_speed", "competitor_intelligence", "vehicle_breakdowns", "subsidy_multiplier", "construction_cost", "terrain_type", "quantity_sea_lakes", "economy", "line_reverse_mode", "disasters", "town_council_tolerance"};
static uint16 _old_diff_custom[GAME_DIFFICULTY_NUM];
uint8 _old_diff_level; ///< Old difficulty level from old savegames
static uint16_t _old_diff_custom[GAME_DIFFICULTY_NUM];
uint8_t _old_diff_level; ///< Old difficulty level from old savegames
static void DifficultyNoiseChange(int32_t new_value);
static void MaxNoAIsChange(int32_t new_value);
static bool TownCouncilToleranceAdjust(int32 &new_value);
static void DifficultyMoneyCheatMultiplayerChange(int32 new_value);
static void DifficultyRenameTownsMultiplayerChange(int32 new_value);
static void DifficultyOverrideTownSettingsMultiplayerChange(int32 new_value);
static bool TownCouncilToleranceAdjust(int32_t &new_value);
static void DifficultyMoneyCheatMultiplayerChange(int32_t new_value);
static void DifficultyRenameTownsMultiplayerChange(int32_t new_value);
static void DifficultyOverrideTownSettingsMultiplayerChange(int32_t new_value);
static const SettingDescEnumEntry _town_council_approval[] = {
{ 0, STR_CITY_APPROVAL_LENIENT },

View File

@@ -9,16 +9,16 @@
[pre-amble]
static void TownFoundingChanged(int32_t new_value);
static void InvalidateCompanyWindow(int32 new_value);
static bool DayLengthPreChange(int32 &new_value);
static void DayLengthChanged(int32 new_value);
static bool CheckSharingRail(int32 &new_value);
static void SharingRailChanged(int32 new_value);
static bool CheckSharingRoad(int32 &new_value);
static bool CheckSharingWater(int32 &new_value);
static bool CheckSharingAir(int32 &new_value);
static void TownZoneModeChanged(int32 new_value);
static void TownZoneCustomValueChanged(int32 new_value);
static void InvalidateCompanyWindow(int32_t new_value);
static bool DayLengthPreChange(int32_t &new_value);
static void DayLengthChanged(int32_t new_value);
static bool CheckSharingRail(int32_t &new_value);
static void SharingRailChanged(int32_t new_value);
static bool CheckSharingRoad(int32_t &new_value);
static bool CheckSharingWater(int32_t &new_value);
static bool CheckSharingAir(int32_t &new_value);
static void TownZoneModeChanged(int32_t new_value);
static void TownZoneCustomValueChanged(int32_t new_value);
static bool OrderTownGrowthRate(SettingOnGuiCtrlData &data);
@@ -71,7 +71,7 @@ from = SLV_113
def = true
str = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS
strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS_HELPTEXT
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x62); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x62); }
[SDT_VAR]
var = economy.found_town
@@ -242,7 +242,7 @@ def = false
str = STR_CONFIG_SETTING_INFLATION
strhelp = STR_CONFIG_SETTING_INFLATION_HELPTEXT
cat = SC_BASIC
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x81); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x81); }
[SDT_BOOL]
var = economy.inflation_fixed_dates

View File

@@ -14,18 +14,18 @@ static constexpr std::initializer_list<const char*> _roadsides{"left", "right"};
static void StationSpreadChanged(int32_t new_value);
static void UpdateConsists(int32_t new_value);
static void TrainAccelerationModelChanged(int32_t new_value);
static bool CheckTrainBrakingModelChange(int32 &new_value);
static void TrainBrakingModelChanged(int32 new_value);
static bool CheckTrainBrakingModelChange(int32_t &new_value);
static void TrainBrakingModelChanged(int32_t new_value);
static void RoadVehAccelerationModelChanged(int32_t new_value);
static void TrainSlopeSteepnessChanged(int32_t new_value);
static void RoadVehSlopeSteepnessChanged(int32_t new_value);
static bool CheckRoadSide(int32_t &new_value);
static void RoadSideChanged(int32 new_value);
static void RoadSideChanged(int32_t new_value);
static bool CheckDynamicEngines(int32_t &new_value);
static void StationCatchmentChanged(int32_t new_value);
static void MaxVehiclesChanged(int32_t new_value);
static void ImprovedBreakdownsSettingChanged(int32 new_value);
static void TrainSpeedAdaptationChanged(int32 new_value);
static void ImprovedBreakdownsSettingChanged(int32_t new_value);
static void TrainSpeedAdaptationChanged(int32_t new_value);
static const SettingDescEnumEntry _train_braking_model[] = {
{ TBM_ORIGINAL, STR_CONFIG_SETTING_ORIGINAL },
@@ -171,7 +171,7 @@ var = station.never_expire_airports
def = false
str = STR_CONFIG_SETTING_NEVER_EXPIRE_AIRPORTS
strhelp = STR_CONFIG_SETTING_NEVER_EXPIRE_AIRPORTS_HELPTEXT
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x0C); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x0C); }
[SDT_VAR]
var = station.station_spread
@@ -508,7 +508,7 @@ var = vehicle.wagon_speed_limits
def = true
str = STR_CONFIG_SETTING_WAGONSPEEDLIMITS
strhelp = STR_CONFIG_SETTING_WAGONSPEEDLIMITS_HELPTEXT
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x5D); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x5D); }
post_cb = UpdateConsists
[SDT_BOOL]
@@ -551,7 +551,7 @@ interval = 1
str = STR_CONFIG_SETTING_FREIGHT_TRAINS
strhelp = STR_CONFIG_SETTING_FREIGHT_TRAINS_HELPTEXT
strval = STR_JUST_COMMA
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x58); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x58); }
post_cb = UpdateConsists
[SDT_VAR]

View File

@@ -15,16 +15,16 @@ static void InvalidateCompanyLiveryWindow(int32_t new_value);
static void InvalidateNewGRFChangeWindows(int32_t new_value);
static void ZoomMinMaxChanged(int32_t new_value);
static void SpriteZoomMinChanged(int32_t new_value);
static void AutosaveModeChanged(int32 new_value);
static void ViewportMapShowTunnelModeChanged(int32 new_value);
static void ViewportMapLandscapeModeChanged(int32 new_value);
static void ChangeTimetableInTicksMode(int32 new_value);
static void InvalidateVehTimetableWindow(int32 new_value);
static void ChangeTimeOverrideMode(int32 new_value);
static void ProgrammableSignalsShownChanged(int32 new_value);
static void EnableSingleVehSharedOrderGuiChanged(int32 new_value);
static void ChangeTrackTypeSortMode(int32 new_value);
static void DeveloperModeChanged(int32 new_value);
static void AutosaveModeChanged(int32_t new_value);
static void ViewportMapShowTunnelModeChanged(int32_t new_value);
static void ViewportMapLandscapeModeChanged(int32_t new_value);
static void ChangeTimetableInTicksMode(int32_t new_value);
static void InvalidateVehTimetableWindow(int32_t new_value);
static void ChangeTimeOverrideMode(int32_t new_value);
static void ProgrammableSignalsShownChanged(int32_t new_value);
static void EnableSingleVehSharedOrderGuiChanged(int32_t new_value);
static void ChangeTrackTypeSortMode(int32_t new_value);
static void DeveloperModeChanged(int32_t new_value);
/* Begin - GUI callbacks */

View File

@@ -9,7 +9,7 @@
[pre-amble]
static int64 LinkGraphDistModeXrefChillPP(int64 val);
static int64_t LinkGraphDistModeXrefChillPP(int64_t val);
static bool LinkGraphDistributionSettingGUI(SettingOnGuiCtrlData &data);
static const SettingDescEnumEntry _linkgraph_mode_symmetric[] = {
@@ -97,7 +97,7 @@ strhelp = STR_CONFIG_SETTING_LINKGRAPH_RECALC_TIME_HELPTEXT
[SDT_NAMED_NULL]
name = ""linkgraph.recalc_not_scaled_by_daylength""
length = 1
extver = SlXvFeatureTest([](uint16 version, bool version_in_range, const std::array<uint16, XSLFI_SIZE> &feature_versions) -> bool { return version_in_range && SlXvIsFeaturePresent(feature_versions, XSLFI_LINKGRAPH_DAY_SCALE, 1, 1) && !SlXvIsFeaturePresent(feature_versions, XSLFI_JOKERPP); })
extver = SlXvFeatureTest([](uint16_t version, bool version_in_range, const std::array<uint16_t, XSLFI_SIZE> &feature_versions) -> bool { return version_in_range && SlXvIsFeaturePresent(feature_versions, XSLFI_LINKGRAPH_DAY_SCALE, 1, 1) && !SlXvIsFeaturePresent(feature_versions, XSLFI_JOKERPP); })
patxname = ""linkgraph_day_scale.linkgraph.recalc_not_scaled_by_daylength""
[SDT_ENUM]

View File

@@ -15,7 +15,7 @@ static constexpr std::initializer_list<const char*> _locale_units{"imperial", "m
static_assert(_locale_currencies.size() == CURRENCY_END);
static void VelocityUnitsChanged(int32 new_value);
static void VelocityUnitsChanged(int32_t new_value);
static const SettingTable _locale_settings{
[post-amble]

View File

@@ -9,7 +9,7 @@
[pre-amble]
static void InvalidateShipPathCache(int32_t new_value);
static void CheckYapfRailSignalPenalties(int32 new_value);
static void CheckYapfRailSignalPenalties(int32_t new_value);
static const SettingTable _pathfinding_settings{
[post-amble]

View File

@@ -10,9 +10,9 @@
[pre-amble]
static constexpr std::initializer_list<const char*> _settings_profiles{"easy", "medium", "hard"};
static void ScriptMaxOpsChange(int32 new_value);
static bool CheckScriptMaxMemoryChange(int32 &new_value);
static void ScriptMaxMemoryChange(int32 new_value);
static void ScriptMaxOpsChange(int32_t new_value);
static bool CheckScriptMaxMemoryChange(int32_t &new_value);
static void ScriptMaxMemoryChange(int32_t new_value);
const SettingTable _script_settings = {
[post-amble]

View File

@@ -14,9 +14,9 @@ static bool CheckMaxHeightLevel(int32_t &new_value);
static bool CheckFreeformEdges(int32_t &new_value);
static void UpdateFreeformEdges(int32_t new_value);
static bool CheckMapEdgeMode(int32_t &new_value);
static void ClimateThresholdModeChanged(int32 new_value);
static void PublicRoadsSettingChange(int32 new_value);
static void MarkAllViewportsDirty(int32 new_value);
static void ClimateThresholdModeChanged(int32_t new_value);
static void PublicRoadsSettingChange(int32_t new_value);
static void MarkAllViewportsDirty(int32_t new_value);
static bool AllowRoadStopsUnderBridgesSettingGUI(SettingOnGuiCtrlData &data);
static bool TreePlacerSettingGUI(SettingOnGuiCtrlData &data);
@@ -678,7 +678,7 @@ interval = 1
str = STR_CONFIG_SETTING_MAX_BRIDGE_LENGTH
strhelp = STR_CONFIG_SETTING_MAX_BRIDGE_LENGTH_HELPTEXT
strval = STR_CONFIG_SETTING_TILE_LENGTH
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x0F); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x0F); }
[SDT_VAR]
var = construction.max_bridge_height
@@ -740,7 +740,7 @@ max = 2
str = STR_CONFIG_SETTING_SIGNALSIDE
strhelp = STR_CONFIG_SETTING_SIGNALSIDE_HELPTEXT
strval = STR_CONFIG_SETTING_SIGNALSIDE_LEFT
pre_cb = [](int32 &new_value) -> bool { return CheckTTDPatchSettingFlag(0x3B); }
pre_cb = [](int32_t &new_value) -> bool { return CheckTTDPatchSettingFlag(0x3B); }
post_cb = [](auto) { MarkWholeScreenDirty(); }
cat = SC_BASIC