Skip to content

Commit

Permalink
Move some files to src/server/
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jan 27, 2024
1 parent c0f852e commit 5dbc1d4
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Expand Up @@ -366,9 +366,7 @@ set(common_SRCS
${mapgen_SRCS}
${server_SRCS}
${content_SRCS}
ban.cpp
chat.cpp
clientiface.cpp
collision.cpp
content_mapnode.cpp
content_nodemeta.cpp
Expand Down Expand Up @@ -413,12 +411,10 @@ set(common_SRCS
raycast.cpp
reflowscan.cpp
remoteplayer.cpp
rollback.cpp
rollback_interface.cpp
serialization.cpp
server.cpp
serverenvironment.cpp
serverlist.cpp
settings.cpp
staticobject.cpp
terminal_chat_console.cpp
Expand Down
1 change: 0 additions & 1 deletion src/client/clientlauncher.cpp
Expand Up @@ -27,7 +27,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "chat.h"
#include "gettext.h"
#include "profiler.h"
#include "serverlist.h"
#include "gui/guiEngine.h"
#include "fontengine.h"
#include "clientlauncher.h"
Expand Down
1 change: 0 additions & 1 deletion src/script/lua_api/l_mainmenu.cpp
Expand Up @@ -32,7 +32,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "convert_json.h"
#include "content/content.h"
#include "content/subgames.h"
#include "serverlist.h"
#include "mapgen/mapgen.h"
#include "settings.h"
#include "client/client.h"
Expand Down
6 changes: 3 additions & 3 deletions src/server.cpp
Expand Up @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "network/connection.h"
#include "network/networkprotocol.h"
#include "network/serveropcodes.h"
#include "ban.h"
#include "server/ban.h"
#include "environment.h"
#include "map.h"
#include "threading/mutex_auto_lock.h"
Expand All @@ -49,9 +49,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "content_nodemeta.h"
#include "content/mods.h"
#include "modchannels.h"
#include "serverlist.h"
#include "server/serverlist.h"
#include "util/string.h"
#include "rollback.h"
#include "server/rollback.h"
#include "util/serialize.h"
#include "util/thread.h"
#include "defaultsettings.h"
Expand Down
2 changes: 1 addition & 1 deletion src/server.h
Expand Up @@ -34,7 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/basic_macros.h"
#include "util/metricsbackend.h"
#include "serverenvironment.h"
#include "clientiface.h"
#include "server/clientiface.h"
#include "chatmessage.h"
#include "sound.h"
#include "translation.h"
Expand Down
4 changes: 4 additions & 0 deletions src/server/CMakeLists.txt
@@ -1,9 +1,13 @@
set(server_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/activeobjectmgr.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ban.cpp
${CMAKE_CURRENT_SOURCE_DIR}/clientiface.cpp
${CMAKE_CURRENT_SOURCE_DIR}/luaentity_sao.cpp
${CMAKE_CURRENT_SOURCE_DIR}/mods.cpp
${CMAKE_CURRENT_SOURCE_DIR}/player_sao.cpp
${CMAKE_CURRENT_SOURCE_DIR}/serveractiveobject.cpp
${CMAKE_CURRENT_SOURCE_DIR}/serverinventorymgr.cpp
${CMAKE_CURRENT_SOURCE_DIR}/serverlist.cpp
${CMAKE_CURRENT_SOURCE_DIR}/unit_sao.cpp
${CMAKE_CURRENT_SOURCE_DIR}/rollback.cpp
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion src/serverlist.h → src/server/serverlist.h
Expand Up @@ -24,6 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#pragma once

// Note that client serverlist handling is all in Lua, this is only announcements now.

namespace ServerList
{
#if USE_CURL
Expand All @@ -36,4 +38,4 @@ void sendAnnounce(AnnounceAction, u16 port,
bool dedicated = false);
#endif

} // namespace ServerList
}
2 changes: 1 addition & 1 deletion src/unittest/test_ban.cpp
Expand Up @@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "test.h"

#include "ban.h"
#include "server/ban.h"

class TestBan : public TestBase
{
Expand Down

0 comments on commit 5dbc1d4

Please sign in to comment.