1
0
Fork 0

Codechange: Include table/strings.h in files that use StringIDs.

Be consistent with how and where the file is incldued.
pull/13851/head
Peter Nelson 2025-03-20 23:54:54 +00:00 committed by Peter Nelson
parent edb101d12f
commit 2909a14374
64 changed files with 107 additions and 22 deletions

View File

@ -21,6 +21,7 @@
#include "ai_config.hpp"
#include "ai_info.hpp"
#include "../script/script_gui.h"
#include "table/strings.h"
#include "../safeguards.h"

View File

@ -10,6 +10,8 @@
#include "../stdafx.h"
#include "../debug.h"
#include "../error.h"
#include "../company_base.h"
#include "../company_func.h"
#include "../script/squirrel_class.hpp"
@ -22,15 +24,14 @@
#include "ai_info.hpp"
#include "ai_instance.hpp"
#include "table/strings.h"
/* Manually include the Text glue. */
#include "../script/api/template/template_text.hpp.sq"
/* Convert all AI related classes to Squirrel data. */
#include "../script/api/ai/ai_includes.hpp"
#include "../company_base.h"
#include "../company_func.h"
#include "../safeguards.h"
AIInstance::AIInstance() :

View File

@ -9,6 +9,7 @@
#include "stdafx.h"
#include "station_base.h"
#include "table/strings.h"
#include "table/airport_movement.h"
#include "table/airporttile_ids.h"

View File

@ -38,6 +38,8 @@
#include "widgets/airport_widget.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -33,6 +33,8 @@
#include "widgets/autoreplace_widget.h"
#include "table/strings.h"
#include "safeguards.h"
static bool EngineNumberSorter(const GUIEngineListItem &a, const GUIEngineListItem &b)

View File

@ -39,6 +39,7 @@
#include "widgets/cheat_widget.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -49,6 +49,8 @@
#include "widgets/company_widget.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -41,13 +41,14 @@
#include "road.h"
#include "rail.h"
#include "game/game.hpp"
#include "table/strings.h"
#include "3rdparty/fmt/chrono.h"
#include "company_cmd.h"
#include "misc_cmd.h"
#include <sstream>
#include "table/strings.h"
#include "safeguards.h"
/* scriptfile handling */

View File

@ -19,6 +19,8 @@
#include "widgets/date_widget.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -16,10 +16,11 @@
#include "strings_func.h"
#include "video/video_driver.hpp"
#include "string_func.h"
#include "table/strings.h"
#include "fileio_func.h"
#include <sstream>
#include "table/strings.h"
#include "safeguards.h"
std::string _ini_videodriver; ///< The video driver a stored in the configuration file.

View File

@ -20,6 +20,8 @@
#include "widgets/dropdown_widget.h"
#include "table/strings.h"
#include "safeguards.h"
std::unique_ptr<DropDownListItem> MakeDropDownListDividerItem()

View File

@ -13,7 +13,6 @@
#include "newgrf_sound.h"
#include "window_gui.h"
#include "window_func.h"
#include "table/sprites.h"
#include "string_func.h"
#include "strings_func.h"
#include "console_func.h"
@ -31,6 +30,8 @@
#include <atomic>
#include <mutex>
#include "table/strings.h"
#include "safeguards.h"
static std::mutex _sound_perf_lock;

View File

@ -25,7 +25,8 @@
#include "game_info.hpp"
#include "../script/script_gui.h"
#include "../script_config.hpp"
#include "../table/strings.h"
#include "table/strings.h"
#include "../safeguards.h"

View File

@ -21,6 +21,8 @@
#include "game_text.hpp"
#include "game.hpp"
#include "table/strings.h"
/* Convert all Game related classes to Squirrel data. */
#include "../script/api/game/game_includes.hpp"

View File

@ -43,6 +43,8 @@
#include "thread.h"
#include "tgp.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -37,6 +37,8 @@
#include "widgets/genworld_widget.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -34,6 +34,7 @@
#include "widgets/group_widget.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -20,6 +20,8 @@
#include "widgets/help_widget.h"
#include "widgets/misc_widget.h"
#include "table/strings.h"
#include "safeguards.h"
static const std::string README_FILENAME = "README.md";

View File

@ -15,9 +15,10 @@
#include "fileio_func.h"
#include "string_func.h"
#include "strings_func.h"
#include "table/strings.h"
#include "debug.h"
#include "table/strings.h"
#include "safeguards.h"
HighScoresTable _highscore_table; ///< Table with all the high scores.

View File

@ -9,7 +9,6 @@
#include "stdafx.h"
#include "highscore.h"
#include "table/strings.h"
#include "gfx_func.h"
#include "table/sprites.h"
#include "window_gui.h"
@ -27,6 +26,8 @@
#include "widgets/highscore_widget.h"
#include "table/strings.h"
#include "safeguards.h"
struct EndGameHighScoreBaseWindow : Window {

View File

@ -24,6 +24,8 @@
#include <signal.h>
#include <sys/stat.h>
#include "table/strings.h"
#include "../safeguards.h"
#ifndef EXTERNAL_PLAYER

View File

@ -18,6 +18,8 @@
#include "../console_func.h"
#include "../console_internal.h"
#include "table/strings.h"
/* SMF reader based on description at: http://www.somascape.org/midi/tech/mfile.html */

View File

@ -27,6 +27,8 @@
#include "../network_internal.h"
#include "packet.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -18,6 +18,8 @@
#include "../../fios.h"
#include "tcp_content.h"
#include "table/strings.h"
#include "../../safeguards.h"
/**

View File

@ -16,6 +16,7 @@
#include "../network.h"
#include "../../core/pool_type.hpp"
#include "../../debug.h"
#include "table/strings.h"
/**

View File

@ -44,6 +44,8 @@
#include <sstream>
#include <iomanip>
#include "table/strings.h"
#include "../safeguards.h"
#ifdef DEBUG_DUMP_COMMANDS

View File

@ -23,6 +23,8 @@
#include "../rev.h"
#include "../game/game.hpp"
#include "table/strings.h"
#include "../safeguards.h"

View File

@ -40,14 +40,13 @@
#include "../timer/timer_window.h"
#include "../timer/timer_game_calendar.h"
#include "../textfile_gui.h"
#include "../stringfilter_type.h"
#include "../widgets/network_widget.h"
#include "table/strings.h"
#include "../table/sprites.h"
#include "../stringfilter_type.h"
#ifdef __EMSCRIPTEN__
# include <emscripten.h>
#endif

View File

@ -37,6 +37,8 @@
#include <mutex>
#include <condition_variable>
#include "table/strings.h"
#include "../safeguards.h"

View File

@ -26,6 +26,7 @@
#include "../rev.h"
#include "../newgrf_text.h"
#include "../strings_func.h"
#include "table/strings.h"
#include "core/udp.h"

View File

@ -17,6 +17,8 @@
#include "newgrf_class_func.h"
#include "town.h"
#include "table/strings.h"
#include "safeguards.h"
/**

View File

@ -18,9 +18,10 @@
#include "landscape.h"
#include "company_base.h"
#include "town.h"
#include "newgrf_animation_base.h"
#include "table/strings.h"
#include "table/airporttiles.h"
#include "newgrf_animation_base.h"
#include "safeguards.h"

View File

@ -36,6 +36,7 @@
#include "widgets/misc_widget.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -24,6 +24,8 @@
#include "water.h"
#include "newgrf_animation_base.h"
#include "table/strings.h"
#include "safeguards.h"
/** The override manager for our objects. */

View File

@ -26,6 +26,8 @@
#include "newgrf_animation_base.h"
#include "newgrf_sound.h"
#include "table/strings.h"
#include "safeguards.h"
template <>

View File

@ -26,6 +26,8 @@
#include "newgrf_class_func.h"
#include "timer/timer_game_calendar.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -81,6 +81,8 @@
#include <system_error>
#include "table/strings.h"
#include "safeguards.h"
#ifdef __EMSCRIPTEN__

View File

@ -20,6 +20,8 @@
#include "group_cmd.h"
#include "vehicle_func.h"
#include "table/strings.h"
#include "safeguards.h"
OrderBackupPool _order_backup_pool("BackupOrder");

View File

@ -37,6 +37,8 @@
#include "widgets/order_widget.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -32,6 +32,7 @@
#include "widgets/picker_widget.h"
#include "table/sprites.h"
#include "table/strings.h"
#include <charconv>

View File

@ -48,6 +48,8 @@
#include "widgets/rail_widget.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -71,6 +71,8 @@
#include <signal.h>
#include "table/strings.h"
#include "../safeguards.h"
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = CompanyID::Invalid());

View File

@ -13,12 +13,10 @@
#include "../string_func.h"
#include "../settings_type.h"
#include "../fileio_func.h"
#include "table/strings.h"
#include "saveload_internal.h"
#include "oldloader.h"
#include "table/strings.h"
#include "../safeguards.h"

View File

@ -45,6 +45,8 @@
#include "../strings_type.h"
#include "../newgrf_railtype.h"
#include "../newgrf_roadtype.h"
#include "saveload_internal.h"
#include "saveload_filter.h"
#include <atomic>
#ifdef __EMSCRIPTEN__
@ -53,9 +55,6 @@
#include "table/strings.h"
#include "saveload_internal.h"
#include "saveload_filter.h"
#include "../safeguards.h"
extern const SaveLoadVersion SAVEGAME_VERSION = (SaveLoadVersion)(SL_MAX_VERSION - 1); ///< Current savegame version of OpenTTD.

View File

@ -15,11 +15,10 @@
#include "../town.h"
#include "../newgrf.h"
#include "../timer/timer_game_calendar.h"
#include "saveload_internal.h"
#include "table/strings.h"
#include "saveload_internal.h"
#include "../safeguards.h"
using OldWaypointID = uint16_t;

View File

@ -16,6 +16,7 @@
#include "../../station_cmd.h"
#include "../../waypoint_cmd.h"
#include "../../timer/timer_game_calendar.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -17,6 +17,7 @@
#include "../../road_cmd.h"
#include "../../tunnelbridge_cmd.h"
#include "../../timer/timer_game_calendar.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -13,6 +13,7 @@
#include "../../core/bitmath_func.hpp"
#include "../../strings_func.h"
#include "../../settings_type.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -24,6 +24,7 @@
#include "../../misc_cmd.h"
#include "../../object_cmd.h"
#include "../../settings_cmd.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -19,6 +19,7 @@
#include "../../articulated_vehicles.h"
#include "../../engine_cmd.h"
#include "../../timer/timer_game_calendar.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -19,6 +19,7 @@
#include "../../economy_cmd.h"
#include "../../engine_cmd.h"
#include "../../3rdparty/nlohmann/json.hpp"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -19,6 +19,7 @@
#include "../../autoreplace_cmd.h"
#include "../../group_cmd.h"
#include "../../settings_cmd.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -21,6 +21,7 @@
#include "../../newgrf_industries.h"
#include "../../industry_cmd.h"
#include "../../timer/timer_game_calendar.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -9,7 +9,6 @@
#include "../../stdafx.h"
#include "script_sign.hpp"
#include "table/strings.h"
#include "../script_instance.hpp"
#include "../../signs_base.h"
#include "../../string_func.h"
@ -17,6 +16,8 @@
#include "../../tile_map.h"
#include "../../signs_cmd.h"
#include "table/strings.h"
#include "../../safeguards.h"
/* static */ bool ScriptSign::IsValidSign(SignID sign_id)

View File

@ -18,6 +18,7 @@
#include "../../station_base.h"
#include "../../landscape.h"
#include "../../town_cmd.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -24,6 +24,7 @@
#include "../../roadveh_cmd.h"
#include "../../train_cmd.h"
#include "../../vehicle_cmd.h"
#include "table/strings.h"
#include "../../safeguards.h"

View File

@ -16,6 +16,8 @@
#include "../string_func.h"
#include <charconv>
#include "table/strings.h"
#include "../safeguards.h"
void ScriptConfig::Change(std::optional<std::string> name, int version, bool force_exact_match)

View File

@ -38,6 +38,7 @@
#include "../game/game_config.hpp"
#include "../game/game_info.hpp"
#include "../game/game_instance.hpp"
#include "table/strings.h"
#include "../safeguards.h"

View File

@ -17,6 +17,7 @@
#include "strings_func.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -52,6 +52,8 @@
#include "sound_func.h"
#include "settingentry_gui.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -12,7 +12,6 @@
#include "../debug.h"
#include "../settings_type.h"
#include "../strings_func.h"
#include "table/strings.h"
#include "../error.h"
#include "../core/math_func.hpp"
#include "../core/alloc_type.hpp"
@ -20,6 +19,8 @@
#include "../spritecache.h"
#include "grf.hpp"
#include "table/strings.h"
#include "../safeguards.h"
extern const uint8_t _palmap_w2d[];

View File

@ -67,6 +67,8 @@
#include "network/network_gui.h"
#include "network/network_func.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -46,6 +46,8 @@
#include "hotkeys.h"
#include "group_cmd.h"
#include "table/strings.h"
#include "safeguards.h"

View File

@ -39,6 +39,8 @@
#include "timer/timer.h"
#include "timer/timer_window.h"
#include "table/strings.h"
#include "safeguards.h"
/** Values for _settings_client.gui.auto_scrolling */