aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt35
-rw-r--r--src/client/CMakeLists.txt31
-rw-r--r--src/client/camera.cpp (renamed from src/camera.cpp)0
-rw-r--r--src/client/camera.h (renamed from src/camera.h)0
-rw-r--r--src/client/client.cpp (renamed from src/client.cpp)0
-rw-r--r--src/client/client.h (renamed from src/client.h)0
-rw-r--r--src/client/clientenvironment.cpp (renamed from src/clientenvironment.cpp)0
-rw-r--r--src/client/clientenvironment.h (renamed from src/clientenvironment.h)0
-rw-r--r--src/client/clientmap.cpp (renamed from src/clientmap.cpp)0
-rw-r--r--src/client/clientmap.h (renamed from src/clientmap.h)0
-rw-r--r--src/client/clientmedia.cpp (renamed from src/clientmedia.cpp)0
-rw-r--r--src/client/clientmedia.h (renamed from src/clientmedia.h)0
-rw-r--r--src/client/clientobject.cpp (renamed from src/clientobject.cpp)0
-rw-r--r--src/client/clientobject.h (renamed from src/clientobject.h)0
-rw-r--r--src/client/clouds.cpp (renamed from src/clouds.cpp)0
-rw-r--r--src/client/clouds.h (renamed from src/clouds.h)0
-rw-r--r--src/client/content_cao.cpp (renamed from src/content_cao.cpp)0
-rw-r--r--src/client/content_cao.h (renamed from src/content_cao.h)0
-rw-r--r--src/client/content_cso.cpp (renamed from src/content_cso.cpp)0
-rw-r--r--src/client/content_cso.h (renamed from src/content_cso.h)0
-rw-r--r--src/client/content_mapblock.cpp (renamed from src/content_mapblock.cpp)0
-rw-r--r--src/client/content_mapblock.h (renamed from src/content_mapblock.h)0
-rw-r--r--src/client/filecache.cpp (renamed from src/filecache.cpp)0
-rw-r--r--src/client/filecache.h (renamed from src/filecache.h)0
-rw-r--r--src/client/fontengine.cpp (renamed from src/fontengine.cpp)0
-rw-r--r--src/client/fontengine.h (renamed from src/fontengine.h)0
-rw-r--r--src/client/game.cpp (renamed from src/game.cpp)0
-rw-r--r--src/client/game.h (renamed from src/game.h)0
-rw-r--r--src/client/guiscalingfilter.cpp (renamed from src/guiscalingfilter.cpp)0
-rw-r--r--src/client/guiscalingfilter.h (renamed from src/guiscalingfilter.h)0
-rw-r--r--src/client/imagefilters.cpp (renamed from src/imagefilters.cpp)0
-rw-r--r--src/client/imagefilters.h (renamed from src/imagefilters.h)0
-rw-r--r--src/client/keycode.cpp (renamed from src/keycode.cpp)0
-rw-r--r--src/client/keycode.h (renamed from src/keycode.h)0
-rw-r--r--src/client/localplayer.cpp (renamed from src/localplayer.cpp)0
-rw-r--r--src/client/localplayer.h (renamed from src/localplayer.h)0
-rw-r--r--src/client/mapblock_mesh.cpp (renamed from src/mapblock_mesh.cpp)0
-rw-r--r--src/client/mapblock_mesh.h (renamed from src/mapblock_mesh.h)0
-rw-r--r--src/client/mesh.cpp (renamed from src/mesh.cpp)0
-rw-r--r--src/client/mesh.h (renamed from src/mesh.h)0
-rw-r--r--src/client/mesh_generator_thread.cpp (renamed from src/mesh_generator_thread.cpp)0
-rw-r--r--src/client/mesh_generator_thread.h (renamed from src/mesh_generator_thread.h)0
-rw-r--r--src/client/meshgen/collector.cpp2
-rw-r--r--src/client/minimap.cpp (renamed from src/minimap.cpp)0
-rw-r--r--src/client/minimap.h (renamed from src/minimap.h)0
-rw-r--r--src/client/particles.cpp (renamed from src/particles.cpp)0
-rw-r--r--src/client/particles.h (renamed from src/particles.h)0
-rw-r--r--src/client/render/core.cpp10
-rw-r--r--src/client/render/interlaced.cpp4
-rw-r--r--src/client/render/stereo.cpp2
-rw-r--r--src/client/shader.cpp (renamed from src/shader.cpp)0
-rw-r--r--src/client/shader.h (renamed from src/shader.h)0
-rw-r--r--src/client/sky.cpp (renamed from src/sky.cpp)0
-rw-r--r--src/client/sky.h (renamed from src/sky.h)0
-rw-r--r--src/client/wieldmesh.cpp (renamed from src/wieldmesh.cpp)0
-rw-r--r--src/client/wieldmesh.h (renamed from src/wieldmesh.h)0
-rw-r--r--src/collision.cpp2
-rw-r--r--src/gui/guiChatConsole.cpp6
-rw-r--r--src/gui/guiConfirmRegistration.cpp2
-rw-r--r--src/gui/guiEngine.cpp6
-rw-r--r--src/gui/guiFormSpecMenu.cpp12
-rw-r--r--src/gui/guiKeyChangeMenu.h2
-rw-r--r--src/gui/guiPasswordChange.cpp2
-rw-r--r--src/gui/guiTable.cpp2
-rw-r--r--src/itemdef.cpp8
-rw-r--r--src/main.cpp2
-rw-r--r--src/mapblock.cpp2
-rw-r--r--src/network/clientopcodes.h2
-rw-r--r--src/network/clientpackethandler.cpp6
-rw-r--r--src/nodedef.cpp6
-rw-r--r--src/script/cpp_api/s_base.cpp2
-rw-r--r--src/script/cpp_api/s_client.cpp2
-rw-r--r--src/script/cpp_api/s_security.cpp2
-rw-r--r--src/script/lua_api/l_camera.cpp6
-rw-r--r--src/script/lua_api/l_client.cpp4
-rw-r--r--src/script/lua_api/l_env.cpp2
-rw-r--r--src/script/lua_api/l_localplayer.cpp2
-rw-r--r--src/script/lua_api/l_minimap.cpp4
-rw-r--r--src/script/lua_api/l_particles.cpp2
-rw-r--r--src/script/lua_api/l_particles_local.cpp4
-rw-r--r--src/script/scripting_client.cpp2
-rw-r--r--src/unittest/test_keycode.cpp2
82 files changed, 88 insertions, 90 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c0832d0c2..8218d586c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -397,12 +397,14 @@ set(common_SRCS
genericobject.cpp
gettext.cpp
httpfetch.cpp
+ hud.cpp
inventory.cpp
inventorymanager.cpp
itemdef.cpp
itemstackmetadata.cpp
light.cpp
log.cpp
+ main.cpp
map.cpp
map_settings_manager.cpp
mapblock.cpp
@@ -482,34 +484,6 @@ set(client_SRCS
${gui_SRCS}
${client_network_SRCS}
${client_irrlicht_changes_SRCS}
- camera.cpp
- client.cpp
- clientenvironment.cpp
- clientmap.cpp
- clientmedia.cpp
- clientobject.cpp
- clouds.cpp
- content_cao.cpp
- content_cso.cpp
- content_mapblock.cpp
- convert_json.cpp
- filecache.cpp
- fontengine.cpp
- game.cpp
- guiscalingfilter.cpp
- hud.cpp
- imagefilters.cpp
- keycode.cpp
- localplayer.cpp
- main.cpp
- mapblock_mesh.cpp
- mesh.cpp
- mesh_generator_thread.cpp
- minimap.cpp
- particles.cpp
- shader.cpp
- sky.cpp
- wieldmesh.cpp
${client_SCRIPT_SRCS}
${UNITTEST_CLIENT_SRCS}
)
@@ -518,7 +492,6 @@ list(SORT client_SRCS)
# Server sources
set(server_SRCS
${common_SRCS}
- main.cpp
)
list(SORT server_SRCS)
@@ -829,10 +802,10 @@ if(BUILD_CLIENT)
endif()
if(USE_FREETYPE)
- install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../fonts" DESTINATION "${SHAREDIR}"
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../fonts" DESTINATION "${SHAREDIR}"
FILES_MATCHING PATTERN "*.ttf" PATTERN "*.txt")
else()
- install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../fonts" DESTINATION "${SHAREDIR}"
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../fonts" DESTINATION "${SHAREDIR}"
FILES_MATCHING PATTERN "*.png" PATTERN "*.xml")
endif()
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt
index 1cabe1b11..e24b73e80 100644
--- a/src/client/CMakeLists.txt
+++ b/src/client/CMakeLists.txt
@@ -25,12 +25,37 @@ set(client_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/render/plain.cpp
${CMAKE_CURRENT_SOURCE_DIR}/render/sidebyside.cpp
${CMAKE_CURRENT_SOURCE_DIR}/render/stereo.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/renderingengine.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/camera.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/client.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/clientenvironment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/clientlauncher.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/clientmap.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/clientmedia.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/clientobject.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/clouds.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/content_cao.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/content_cso.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/content_mapblock.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/filecache.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/fontengine.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/game.cpp
${CMAKE_CURRENT_SOURCE_DIR}/gameui.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/guiscalingfilter.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/hud.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/imagefilters.cpp
${CMAKE_CURRENT_SOURCE_DIR}/inputhandler.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/tile.cpp
${CMAKE_CURRENT_SOURCE_DIR}/joystick_controller.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/hud.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/keycode.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/localplayer.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/mapblock_mesh.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/mesh.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/mesh_generator_thread.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/minimap.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/particles.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/renderingengine.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/shader.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/sky.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/tile.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/wieldmesh.cpp
PARENT_SCOPE
)
diff --git a/src/camera.cpp b/src/client/camera.cpp
index 1bbdb56ea..1bbdb56ea 100644
--- a/src/camera.cpp
+++ b/src/client/camera.cpp
diff --git a/src/camera.h b/src/client/camera.h
index 88de3570a..88de3570a 100644
--- a/src/camera.h
+++ b/src/client/camera.h
diff --git a/src/client.cpp b/src/client/client.cpp
index 17ee3a10a..17ee3a10a 100644
--- a/src/client.cpp
+++ b/src/client/client.cpp
diff --git a/src/client.h b/src/client/client.h
index 68a832d8e..68a832d8e 100644
--- a/src/client.h
+++ b/src/client/client.h
diff --git a/src/clientenvironment.cpp b/src/client/clientenvironment.cpp
index e2f24aaa3..e2f24aaa3 100644
--- a/src/clientenvironment.cpp
+++ b/src/client/clientenvironment.cpp
diff --git a/src/clientenvironment.h b/src/client/clientenvironment.h
index 606070e3a..606070e3a 100644
--- a/src/clientenvironment.h
+++ b/src/client/clientenvironment.h
diff --git a/src/clientmap.cpp b/src/client/clientmap.cpp
index 969c55539..969c55539 100644
--- a/src/clientmap.cpp
+++ b/src/client/clientmap.cpp
diff --git a/src/clientmap.h b/src/client/clientmap.h
index 8402bb00d..8402bb00d 100644
--- a/src/clientmap.h
+++ b/src/client/clientmap.h
diff --git a/src/clientmedia.cpp b/src/client/clientmedia.cpp
index 97931ee68..97931ee68 100644
--- a/src/clientmedia.cpp
+++ b/src/client/clientmedia.cpp
diff --git a/src/clientmedia.h b/src/client/clientmedia.h
index b08b83e4d..b08b83e4d 100644
--- a/src/clientmedia.h
+++ b/src/client/clientmedia.h
diff --git a/src/clientobject.cpp b/src/client/clientobject.cpp
index f4b69201b..f4b69201b 100644
--- a/src/clientobject.cpp
+++ b/src/client/clientobject.cpp
diff --git a/src/clientobject.h b/src/client/clientobject.h
index 9377d1e67..9377d1e67 100644
--- a/src/clientobject.h
+++ b/src/client/clientobject.h
diff --git a/src/clouds.cpp b/src/client/clouds.cpp
index 13051f32c..13051f32c 100644
--- a/src/clouds.cpp
+++ b/src/client/clouds.cpp
diff --git a/src/clouds.h b/src/client/clouds.h
index a4d810faa..a4d810faa 100644
--- a/src/clouds.h
+++ b/src/client/clouds.h
diff --git a/src/content_cao.cpp b/src/client/content_cao.cpp
index db59ae5c5..db59ae5c5 100644
--- a/src/content_cao.cpp
+++ b/src/client/content_cao.cpp
diff --git a/src/content_cao.h b/src/client/content_cao.h
index 98932137e..98932137e 100644
--- a/src/content_cao.h
+++ b/src/client/content_cao.h
diff --git a/src/content_cso.cpp b/src/client/content_cso.cpp
index 04c503f44..04c503f44 100644
--- a/src/content_cso.cpp
+++ b/src/client/content_cso.cpp
diff --git a/src/content_cso.h b/src/client/content_cso.h
index cc9213175..cc9213175 100644
--- a/src/content_cso.h
+++ b/src/client/content_cso.h
diff --git a/src/content_mapblock.cpp b/src/client/content_mapblock.cpp
index 4a0df6171..4a0df6171 100644
--- a/src/content_mapblock.cpp
+++ b/src/client/content_mapblock.cpp
diff --git a/src/content_mapblock.h b/src/client/content_mapblock.h
index 97947cdbe..97947cdbe 100644
--- a/src/content_mapblock.h
+++ b/src/client/content_mapblock.h
diff --git a/src/filecache.cpp b/src/client/filecache.cpp
index 3d1b302a8..3d1b302a8 100644
--- a/src/filecache.cpp
+++ b/src/client/filecache.cpp
diff --git a/src/filecache.h b/src/client/filecache.h
index 96e4c8ba1..96e4c8ba1 100644
--- a/src/filecache.h
+++ b/src/client/filecache.h
diff --git a/src/fontengine.cpp b/src/client/fontengine.cpp
index dc98fb1e4..dc98fb1e4 100644
--- a/src/fontengine.cpp
+++ b/src/client/fontengine.cpp
diff --git a/src/fontengine.h b/src/client/fontengine.h
index a75618f86..a75618f86 100644
--- a/src/fontengine.h
+++ b/src/client/fontengine.h
diff --git a/src/game.cpp b/src/client/game.cpp
index 6cf6723e9..6cf6723e9 100644
--- a/src/game.cpp
+++ b/src/client/game.cpp
diff --git a/src/game.h b/src/client/game.h
index 69e6eed0b..69e6eed0b 100644
--- a/src/game.h
+++ b/src/client/game.h
diff --git a/src/guiscalingfilter.cpp b/src/client/guiscalingfilter.cpp
index 3b4377da5..3b4377da5 100644
--- a/src/guiscalingfilter.cpp
+++ b/src/client/guiscalingfilter.cpp
diff --git a/src/guiscalingfilter.h b/src/client/guiscalingfilter.h
index 4661bf8da..4661bf8da 100644
--- a/src/guiscalingfilter.h
+++ b/src/client/guiscalingfilter.h
diff --git a/src/imagefilters.cpp b/src/client/imagefilters.cpp
index dd029628f..dd029628f 100644
--- a/src/imagefilters.cpp
+++ b/src/client/imagefilters.cpp
diff --git a/src/imagefilters.h b/src/client/imagefilters.h
index 5676faf85..5676faf85 100644
--- a/src/imagefilters.h
+++ b/src/client/imagefilters.h
diff --git a/src/keycode.cpp b/src/client/keycode.cpp
index 646d181e0..646d181e0 100644
--- a/src/keycode.cpp
+++ b/src/client/keycode.cpp
diff --git a/src/keycode.h b/src/client/keycode.h
index 7036705d1..7036705d1 100644
--- a/src/keycode.h
+++ b/src/client/keycode.h
diff --git a/src/localplayer.cpp b/src/client/localplayer.cpp
index 1c65d3b4d..1c65d3b4d 100644
--- a/src/localplayer.cpp
+++ b/src/client/localplayer.cpp
diff --git a/src/localplayer.h b/src/client/localplayer.h
index 7148bc4de..7148bc4de 100644
--- a/src/localplayer.h
+++ b/src/client/localplayer.h
diff --git a/src/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp
index ed8a073de..ed8a073de 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/client/mapblock_mesh.cpp
diff --git a/src/mapblock_mesh.h b/src/client/mapblock_mesh.h
index 6af23a656..6af23a656 100644
--- a/src/mapblock_mesh.h
+++ b/src/client/mapblock_mesh.h
diff --git a/src/mesh.cpp b/src/client/mesh.cpp
index 7fc7531f2..7fc7531f2 100644
--- a/src/mesh.cpp
+++ b/src/client/mesh.cpp
diff --git a/src/mesh.h b/src/client/mesh.h
index 0c4094de2..0c4094de2 100644
--- a/src/mesh.h
+++ b/src/client/mesh.h
diff --git a/src/mesh_generator_thread.cpp b/src/client/mesh_generator_thread.cpp
index be4bcc1f4..be4bcc1f4 100644
--- a/src/mesh_generator_thread.cpp
+++ b/src/client/mesh_generator_thread.cpp
diff --git a/src/mesh_generator_thread.h b/src/client/mesh_generator_thread.h
index 9a42852a3..9a42852a3 100644
--- a/src/mesh_generator_thread.h
+++ b/src/client/mesh_generator_thread.h
diff --git a/src/client/meshgen/collector.cpp b/src/client/meshgen/collector.cpp
index c317a0772..25457c868 100644
--- a/src/client/meshgen/collector.cpp
+++ b/src/client/meshgen/collector.cpp
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "collector.h"
#include <stdexcept>
#include "log.h"
-#include "mesh.h"
+#include "client/mesh.h"
void MeshCollector::append(const TileSpec &tile, const video::S3DVertex *vertices,
u32 numVertices, const u16 *indices, u32 numIndices)
diff --git a/src/minimap.cpp b/src/client/minimap.cpp
index 4d83c088a..4d83c088a 100644
--- a/src/minimap.cpp
+++ b/src/client/minimap.cpp
diff --git a/src/minimap.h b/src/client/minimap.h
index 258d5330d..258d5330d 100644
--- a/src/minimap.h
+++ b/src/client/minimap.h
diff --git a/src/particles.cpp b/src/client/particles.cpp
index 25cfa081e..25cfa081e 100644
--- a/src/particles.cpp
+++ b/src/client/particles.cpp
diff --git a/src/particles.h b/src/client/particles.h
index 3392e7e95..3392e7e95 100644
--- a/src/particles.h
+++ b/src/client/particles.h
diff --git a/src/client/render/core.cpp b/src/client/render/core.cpp
index bd280bc73..8c70b36c6 100644
--- a/src/client/render/core.cpp
+++ b/src/client/render/core.cpp
@@ -19,11 +19,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "core.h"
-#include "camera.h"
-#include "client.h"
-#include "clientmap.h"
-#include "hud.h"
-#include "minimap.h"
+#include "client/camera.h"
+#include "client/client.h"
+#include "client/clientmap.h"
+#include "client/hud.h"
+#include "client/minimap.h"
RenderingCore::RenderingCore(IrrlichtDevice *_device, Client *_client, Hud *_hud)
: device(_device), driver(device->getVideoDriver()), smgr(device->getSceneManager()),
diff --git a/src/client/render/interlaced.cpp b/src/client/render/interlaced.cpp
index 87d75de30..2aadadc17 100644
--- a/src/client/render/interlaced.cpp
+++ b/src/client/render/interlaced.cpp
@@ -19,8 +19,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "interlaced.h"
-#include "client.h"
-#include "shader.h"
+#include "client/client.h"
+#include "client/shader.h"
#include "client/tile.h"
RenderingCoreInterlaced::RenderingCoreInterlaced(
diff --git a/src/client/render/stereo.cpp b/src/client/render/stereo.cpp
index 4a5761bb7..967b5a78f 100644
--- a/src/client/render/stereo.cpp
+++ b/src/client/render/stereo.cpp
@@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "stereo.h"
-#include "camera.h"
+#include "client/camera.h"
#include "constants.h"
#include "settings.h"
diff --git a/src/shader.cpp b/src/client/shader.cpp
index 3b49a36ba..3b49a36ba 100644
--- a/src/shader.cpp
+++ b/src/client/shader.cpp
diff --git a/src/shader.h b/src/client/shader.h
index 583c776f4..583c776f4 100644
--- a/src/shader.h
+++ b/src/client/shader.h
diff --git a/src/sky.cpp b/src/client/sky.cpp
index faf12ba92..faf12ba92 100644
--- a/src/sky.cpp
+++ b/src/client/sky.cpp
diff --git a/src/sky.h b/src/client/sky.h
index b66a4990f..b66a4990f 100644
--- a/src/sky.h
+++ b/src/client/sky.h
diff --git a/src/wieldmesh.cpp b/src/client/wieldmesh.cpp
index 7791a5a92..7791a5a92 100644
--- a/src/wieldmesh.cpp
+++ b/src/client/wieldmesh.cpp
diff --git a/src/wieldmesh.h b/src/client/wieldmesh.h
index 0908d3ac2..0908d3ac2 100644
--- a/src/wieldmesh.h
+++ b/src/client/wieldmesh.h
diff --git a/src/collision.cpp b/src/collision.cpp
index 9626221a0..a07899e65 100644
--- a/src/collision.cpp
+++ b/src/collision.cpp
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "nodedef.h"
#include "gamedef.h"
#ifndef SERVER
-#include "clientenvironment.h"
+#include "client/clientenvironment.h"
#endif
#include "serverenvironment.h"
#include "serverobject.h"
diff --git a/src/gui/guiChatConsole.cpp b/src/gui/guiChatConsole.cpp
index b194834e2..1ccb4e6d1 100644
--- a/src/gui/guiChatConsole.cpp
+++ b/src/gui/guiChatConsole.cpp
@@ -19,14 +19,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiChatConsole.h"
#include "chat.h"
-#include "client.h"
+#include "client/client.h"
#include "debug.h"
#include "gettime.h"
-#include "keycode.h"
+#include "client/keycode.h"
#include "settings.h"
#include "porting.h"
#include "client/tile.h"
-#include "fontengine.h"
+#include "client/fontengine.h"
#include "log.h"
#include "gettext.h"
#include <string>
diff --git a/src/gui/guiConfirmRegistration.cpp b/src/gui/guiConfirmRegistration.cpp
index a13929a48..9a374b405 100644
--- a/src/gui/guiConfirmRegistration.cpp
+++ b/src/gui/guiConfirmRegistration.cpp
@@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "guiConfirmRegistration.h"
-#include "client.h"
+#include "client/client.h"
#include <IGUICheckBox.h>
#include <IGUIButton.h>
#include <IGUIStaticText.h>
diff --git a/src/gui/guiEngine.cpp b/src/gui/guiEngine.cpp
index 67ab6437d..a3ef1b9a6 100644
--- a/src/gui/guiEngine.cpp
+++ b/src/gui/guiEngine.cpp
@@ -32,11 +32,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiMainMenu.h"
#include "sound.h"
#include "client/sound_openal.h"
-#include "clouds.h"
+#include "client/clouds.h"
#include "httpfetch.h"
#include "log.h"
-#include "fontengine.h"
-#include "guiscalingfilter.h"
+#include "client/fontengine.h"
+#include "client/guiscalingfilter.h"
#include "irrlicht_changes/static_text.h"
#ifdef __ANDROID__
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index f23055821..c52a6ee27 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiTable.h"
#include "constants.h"
#include "gamedef.h"
-#include "keycode.h"
+#include "client/keycode.h"
#include "util/strfnd.h"
#include <IGUICheckBox.h>
#include <IGUIEditBox.h>
@@ -47,13 +47,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mainmenumanager.h"
#include "porting.h"
#include "settings.h"
-#include "client.h"
-#include "fontengine.h"
+#include "client/client.h"
+#include "client/fontengine.h"
#include "util/hex.h"
#include "util/numeric.h"
#include "util/string.h" // for parseColorString()
#include "irrlicht_changes/static_text.h"
-#include "guiscalingfilter.h"
+#include "client/guiscalingfilter.h"
#include "guiEditBoxWithScrollbar.h"
#include "intlGUIEditBox.h"
@@ -673,10 +673,10 @@ void GUIFormSpecMenu::parseBackground(parserData* data, const std::string &eleme
pos.Y = stoi(v_pos[1]); //acts as offset
clip = true;
}
-
+
if (!data->explicit_size && !clip)
warningstream << "invalid use of unclipped background without a size[] element" << std::endl;
-
+
m_backgrounds.emplace_back(name, pos, geom, clip);
return;
diff --git a/src/gui/guiKeyChangeMenu.h b/src/gui/guiKeyChangeMenu.h
index eded61e4c..0aaa05e18 100644
--- a/src/gui/guiKeyChangeMenu.h
+++ b/src/gui/guiKeyChangeMenu.h
@@ -24,7 +24,7 @@
#include "irrlichttypes_extrabloated.h"
#include "modalMenu.h"
#include "gettext.h"
-#include "keycode.h"
+#include "client/keycode.h"
#include <string>
#include <vector>
diff --git a/src/gui/guiPasswordChange.cpp b/src/gui/guiPasswordChange.cpp
index e29ef27e6..469c38dbe 100644
--- a/src/gui/guiPasswordChange.cpp
+++ b/src/gui/guiPasswordChange.cpp
@@ -17,7 +17,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "guiPasswordChange.h"
-#include "client.h"
+#include "client/client.h"
#include <IGUICheckBox.h>
#include <IGUIEditBox.h>
#include <IGUIButton.h>
diff --git a/src/gui/guiTable.cpp b/src/gui/guiTable.cpp
index b1a027e9b..a123bdd6d 100644
--- a/src/gui/guiTable.cpp
+++ b/src/gui/guiTable.cpp
@@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/string.h" // for parseColorString()
#include "settings.h" // for settings
#include "porting.h" // for dpi
-#include "guiscalingfilter.h"
+#include "client/guiscalingfilter.h"
/*
GUITable
diff --git a/src/itemdef.cpp b/src/itemdef.cpp
index f7d366c8a..11a52f85c 100644
--- a/src/itemdef.cpp
+++ b/src/itemdef.cpp
@@ -24,11 +24,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "tool.h"
#include "inventory.h"
#ifndef SERVER
-#include "mapblock_mesh.h"
-#include "mesh.h"
-#include "wieldmesh.h"
+#include "client/mapblock_mesh.h"
+#include "client/mesh.h"
+#include "client/wieldmesh.h"
#include "client/tile.h"
-#include "client.h"
+#include "client/client.h"
#endif
#include "log.h"
#include "settings.h"
diff --git a/src/main.cpp b/src/main.cpp
index 2033518e3..546eb2a00 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "server.h"
#include "filesys.h"
#include "version.h"
-#include "game.h"
+#include "client/game.h"
#include "defaultsettings.h"
#include "gettext.h"
#include "log.h"
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index cf815d16b..dfb4c783e 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -31,7 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "content_nodemeta.h" // For legacy deserialization
#include "serialization.h"
#ifndef SERVER
-#include "mapblock_mesh.h"
+#include "client/mapblock_mesh.h"
#endif
#include "porting.h"
#include "util/string.h"
diff --git a/src/network/clientopcodes.h b/src/network/clientopcodes.h
index 57846f095..d03dc457d 100644
--- a/src/network/clientopcodes.h
+++ b/src/network/clientopcodes.h
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
-#include "client.h"
+#include "client/client.h"
#include "networkprotocol.h"
class NetworkPacket;
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 1899b496e..1be7d4eeb 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -17,15 +17,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "client.h"
+#include "client/client.h"
#include "util/base64.h"
#include "chatmessage.h"
-#include "clientmedia.h"
+#include "client/clientmedia.h"
#include "log.h"
#include "map.h"
#include "mapsector.h"
-#include "minimap.h"
+#include "client/minimap.h"
#include "modchannels.h"
#include "nodedef.h"
#include "serialization.h"
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index c3f2ccd60..70974a572 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -21,9 +21,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "itemdef.h"
#ifndef SERVER
-#include "mesh.h"
-#include "shader.h"
-#include "client.h"
+#include "client/mesh.h"
+#include "client/shader.h"
+#include "client/client.h"
#include "client/renderingengine.h"
#include "client/tile.h"
#include <IMeshManipulator.h>
diff --git a/src/script/cpp_api/s_base.cpp b/src/script/cpp_api/s_base.cpp
index d98359d20..bf89f748c 100644
--- a/src/script/cpp_api/s_base.cpp
+++ b/src/script/cpp_api/s_base.cpp
@@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/string.h"
#include "server.h"
#ifndef SERVER
-#include "client.h"
+#include "client/client.h"
#endif
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp
index 597883c2f..f2cc9730b 100644
--- a/src/script/cpp_api/s_client.cpp
+++ b/src/script/cpp_api/s_client.cpp
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "s_client.h"
#include "s_internal.h"
-#include "client.h"
+#include "client/client.h"
#include "common/c_converter.h"
#include "common/c_content.h"
#include "s_item.h"
diff --git a/src/script/cpp_api/s_security.cpp b/src/script/cpp_api/s_security.cpp
index e87f16ddd..e9067a54c 100644
--- a/src/script/cpp_api/s_security.cpp
+++ b/src/script/cpp_api/s_security.cpp
@@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "filesys.h"
#include "porting.h"
#include "server.h"
-#include "client.h"
+#include "client/client.h"
#include "settings.h"
#include <cerrno>
diff --git a/src/script/lua_api/l_camera.cpp b/src/script/lua_api/l_camera.cpp
index 326cc6d53..462006777 100644
--- a/src/script/lua_api/l_camera.cpp
+++ b/src/script/lua_api/l_camera.cpp
@@ -21,9 +21,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <cmath>
#include "script/common/c_converter.h"
#include "l_internal.h"
-#include "content_cao.h"
-#include "camera.h"
-#include "client.h"
+#include "client/content_cao.h"
+#include "client/camera.h"
+#include "client/client.h"
LuaCamera::LuaCamera(Camera *m) : m_camera(m)
{
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index 72826775b..8a5867a32 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -20,10 +20,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "l_client.h"
#include "chatmessage.h"
-#include "client.h"
+#include "client/client.h"
#include "client/clientevent.h"
#include "client/sound.h"
-#include "clientenvironment.h"
+#include "client/clientenvironment.h"
#include "common/c_content.h"
#include "common/c_converter.h"
#include "cpp_api/s_base.h"
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index 1e5149f7a..ba2be0cb5 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "face_position_cache.h"
#include "remoteplayer.h"
#ifndef SERVER
-#include "client.h"
+#include "client/client.h"
#endif
struct EnumString ModApiEnvMod::es_ClearObjectsMode[] =
diff --git a/src/script/lua_api/l_localplayer.cpp b/src/script/lua_api/l_localplayer.cpp
index 492422d92..7444d0e88 100644
--- a/src/script/lua_api/l_localplayer.cpp
+++ b/src/script/lua_api/l_localplayer.cpp
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "l_localplayer.h"
#include "l_internal.h"
#include "script/common/c_converter.h"
-#include "localplayer.h"
+#include "client/localplayer.h"
#include "hud.h"
#include "common/c_content.h"
diff --git a/src/script/lua_api/l_minimap.cpp b/src/script/lua_api/l_minimap.cpp
index b59e79095..5fba76eb8 100644
--- a/src/script/lua_api/l_minimap.cpp
+++ b/src/script/lua_api/l_minimap.cpp
@@ -21,8 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "lua_api/l_minimap.h"
#include "lua_api/l_internal.h"
#include "common/c_converter.h"
-#include "client.h"
-#include "minimap.h"
+#include "client/client.h"
+#include "client/minimap.h"
#include "settings.h"
LuaMinimap::LuaMinimap(Minimap *m) : m_minimap(m)
diff --git a/src/script/lua_api/l_particles.cpp b/src/script/lua_api/l_particles.cpp
index 7783e5910..340903ebf 100644
--- a/src/script/lua_api/l_particles.cpp
+++ b/src/script/lua_api/l_particles.cpp
@@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "common/c_converter.h"
#include "common/c_content.h"
#include "server.h"
-#include "particles.h"
+#include "client/particles.h"
// add_particle({pos=, velocity=, acceleration=, expirationtime=,
// size=, collisiondetection=, collision_removal=, object_collision=,
diff --git a/src/script/lua_api/l_particles_local.cpp b/src/script/lua_api/l_particles_local.cpp
index d5c412556..3c7a821ca 100644
--- a/src/script/lua_api/l_particles_local.cpp
+++ b/src/script/lua_api/l_particles_local.cpp
@@ -23,8 +23,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "common/c_converter.h"
#include "lua_api/l_internal.h"
#include "lua_api/l_object.h"
-#include "particles.h"
-#include "client.h"
+#include "client/particles.h"
+#include "client/client.h"
#include "client/clientevent.h"
int ModApiParticlesLocal::l_add_particle(lua_State *L)
diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp
index a6511ffd5..86e5f2874 100644
--- a/src/script/scripting_client.cpp
+++ b/src/script/scripting_client.cpp
@@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "scripting_client.h"
-#include "client.h"
+#include "client/client.h"
#include "cpp_api/s_internal.h"
#include "lua_api/l_client.h"
#include "lua_api/l_env.h"
diff --git a/src/unittest/test_keycode.cpp b/src/unittest/test_keycode.cpp
index dd3d75a5b..3813af949 100644
--- a/src/unittest/test_keycode.cpp
+++ b/src/unittest/test_keycode.cpp
@@ -21,7 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <string>
#include "exceptions.h"
-#include "keycode.h"
+#include "client/keycode.h"
class TestKeycode : public TestBase {
public: