From 3ecc4ccdad8de0271f65a37956874d06d6d6ced3 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 18 Nov 2022 09:24:31 +0800 Subject: [PATCH] Remove IFileSystem.h in file_manager.hpp --- src/addons/zip.cpp | 2 ++ src/graphics/material.cpp | 1 + src/graphics/material_manager.cpp | 1 + src/graphics/post_processing.cpp | 1 + src/graphics/shader_files_manager.cpp | 2 ++ src/graphics/sp/sp_shader_manager.cpp | 1 + src/graphics/sp/sp_texture.cpp | 1 + src/graphics/stk_tex_manager.cpp | 2 ++ src/guiengine/skin.cpp | 1 + src/io/file_manager.cpp | 2 ++ src/io/file_manager.hpp | 7 +++++-- src/karts/kart_properties.cpp | 1 + src/network/server_config.cpp | 2 ++ src/physics/physical_object.cpp | 1 + src/tracks/track.cpp | 1 + 15 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/addons/zip.cpp b/src/addons/zip.cpp index 2c5c44261..afabc71e0 100644 --- a/src/addons/zip.cpp +++ b/src/addons/zip.cpp @@ -25,6 +25,8 @@ #include "utils/string_utils.hpp" #include +#include +#include #include using namespace irr; using namespace io; diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index cf758beee..6a2520513 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -41,6 +41,7 @@ #include "utils/log.hpp" #include "utils/vs.hpp" +#include #include #include #include diff --git a/src/graphics/material_manager.cpp b/src/graphics/material_manager.cpp index d47d1b0fb..f068b95a5 100644 --- a/src/graphics/material_manager.cpp +++ b/src/graphics/material_manager.cpp @@ -33,6 +33,7 @@ #include "tracks/track.hpp" #include "utils/string_utils.hpp" +#include #include #include #include diff --git a/src/graphics/post_processing.cpp b/src/graphics/post_processing.cpp index ff977e9ff..f84f13cfa 100644 --- a/src/graphics/post_processing.cpp +++ b/src/graphics/post_processing.cpp @@ -47,6 +47,7 @@ #include "utils/cpp2011.hpp" #include +#include #include #include #include diff --git a/src/graphics/shader_files_manager.cpp b/src/graphics/shader_files_manager.cpp index 59d7d06da..d18146fc6 100644 --- a/src/graphics/shader_files_manager.cpp +++ b/src/graphics/shader_files_manager.cpp @@ -31,6 +31,8 @@ #include #include +#include + // ---------------------------------------------------------------------------- /** Returns a string with the content of header.txt (which contains basic * shader defines). diff --git a/src/graphics/sp/sp_shader_manager.cpp b/src/graphics/sp/sp_shader_manager.cpp index b51adf59b..e5057fd52 100644 --- a/src/graphics/sp/sp_shader_manager.cpp +++ b/src/graphics/sp/sp_shader_manager.cpp @@ -29,6 +29,7 @@ #include "utils/log.hpp" #include +#include namespace SP { diff --git a/src/graphics/sp/sp_texture.cpp b/src/graphics/sp/sp_texture.cpp index 04feb2950..c7c2a468c 100644 --- a/src/graphics/sp/sp_texture.cpp +++ b/src/graphics/sp/sp_texture.cpp @@ -30,6 +30,7 @@ #include "utils/string_utils.hpp" #include +#include #include #include diff --git a/src/graphics/stk_tex_manager.cpp b/src/graphics/stk_tex_manager.cpp index 5d0c385dd..348aacf72 100644 --- a/src/graphics/stk_tex_manager.cpp +++ b/src/graphics/stk_tex_manager.cpp @@ -32,6 +32,8 @@ #include #endif +#include + // ---------------------------------------------------------------------------- STKTexManager::~STKTexManager() { diff --git a/src/guiengine/skin.cpp b/src/guiengine/skin.cpp index 2864bb9ef..fc44aa924 100644 --- a/src/guiengine/skin.cpp +++ b/src/guiengine/skin.cpp @@ -37,6 +37,7 @@ #include "utils/string_utils.hpp" #include +#include #include using namespace GUIEngine; diff --git a/src/io/file_manager.cpp b/src/io/file_manager.cpp index bc173b2c5..5cbb06cb8 100644 --- a/src/io/file_manager.cpp +++ b/src/io/file_manager.cpp @@ -50,6 +50,8 @@ #include #include +#include + namespace irr { namespace io { diff --git a/src/io/file_manager.hpp b/src/io/file_manager.hpp index d6eb1586a..82773ed26 100644 --- a/src/io/file_manager.hpp +++ b/src/io/file_manager.hpp @@ -30,8 +30,11 @@ #include #include -#include -namespace irr { class IrrlichtDevice; } +namespace irr +{ + class IrrlichtDevice; + namespace io { class IFileSystem; } +} using namespace irr; #include "io/xml_node.hpp" diff --git a/src/karts/kart_properties.cpp b/src/karts/kart_properties.cpp index 9f21a30b5..bc65d6343 100644 --- a/src/karts/kart_properties.cpp +++ b/src/karts/kart_properties.cpp @@ -47,6 +47,7 @@ #include #include +#include #ifndef SERVER_ONLY #include #endif diff --git a/src/network/server_config.cpp b/src/network/server_config.cpp index 375d8d3e9..5d22927a1 100644 --- a/src/network/server_config.cpp +++ b/src/network/server_config.cpp @@ -47,6 +47,8 @@ static std::vector g_server_params; #include +#include + namespace ServerConfig { // ============================================================================ diff --git a/src/physics/physical_object.cpp b/src/physics/physical_object.cpp index 4cd1f0816..35a9179a7 100644 --- a/src/physics/physical_object.cpp +++ b/src/physics/physical_object.cpp @@ -38,6 +38,7 @@ #include "mini_glm.hpp" #include "utils/string_utils.hpp" +#include #include #include #include diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index 366be7ae3..5dab4e5f3 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -84,6 +84,7 @@ #include "utils/translation.hpp" #include +#include #include #include #include