From 3b52549a3d0c96baf335dc136be73add9932c498 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 1 Apr 2017 08:14:26 +0800 Subject: [PATCH] [Server] Rename init_processors to ProcessorInitializer --- apps/openmw-mp/CMakeLists.txt | 2 +- apps/openmw-mp/Networking.cpp | 4 ++-- .../{init_processors.cpp => ProcessorInitializer.cpp} | 4 ++-- .../{init_processors.hpp => ProcessorInitializer.hpp} | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename apps/openmw-mp/{init_processors.cpp => ProcessorInitializer.cpp} (97%) rename apps/openmw-mp/{init_processors.hpp => ProcessorInitializer.hpp} (83%) diff --git a/apps/openmw-mp/CMakeLists.txt b/apps/openmw-mp/CMakeLists.txt index a8c1fc8ae..2f28792c3 100644 --- a/apps/openmw-mp/CMakeLists.txt +++ b/apps/openmw-mp/CMakeLists.txt @@ -80,7 +80,7 @@ set(SERVER Script/Functions/Cells.cpp Script/Functions/World.cpp Script/Functions/Miscellaneous.cpp PlayerProcessor.cpp - init_processors.cpp + ProcessorInitializer.cpp Script/API/TimerAPI.cpp Script/API/PublicFnAPI.cpp ${PawnScript_Sources} diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 81f0e3961..e5905fad6 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -3,7 +3,7 @@ // #include "Player.hpp" -#include "init_processors.hpp" +#include "ProcessorInitializer.hpp" #include #include #include @@ -49,7 +49,7 @@ Networking::Networking(RakNet::RakPeerInterface *peer) serverPassword = TES3MP_DEFAULT_PASSW; - init_processors(); + ProcessorInitializer(); } Networking::~Networking() diff --git a/apps/openmw-mp/init_processors.cpp b/apps/openmw-mp/ProcessorInitializer.cpp similarity index 97% rename from apps/openmw-mp/init_processors.cpp rename to apps/openmw-mp/ProcessorInitializer.cpp index 1893d5e73..305c6c997 100644 --- a/apps/openmw-mp/init_processors.cpp +++ b/apps/openmw-mp/ProcessorInitializer.cpp @@ -2,7 +2,7 @@ // Created by koncord on 31.03.17. // -#include "init_processors.hpp" +#include "ProcessorInitializer.hpp" #include "PlayerProcessor.hpp" #include "processors/ProcessorPlayerPos.hpp" @@ -28,7 +28,7 @@ using namespace mwmp; -void init_processors() +void ProcessorInitializer() { PlayerProcessor::AddProcessor(new ProcessorPlayerPos()); PlayerProcessor::AddProcessor(new ProcessorPlayerCellChange()); diff --git a/apps/openmw-mp/init_processors.hpp b/apps/openmw-mp/ProcessorInitializer.hpp similarity index 83% rename from apps/openmw-mp/init_processors.hpp rename to apps/openmw-mp/ProcessorInitializer.hpp index 5c1ea410d..f4a5aa515 100644 --- a/apps/openmw-mp/init_processors.hpp +++ b/apps/openmw-mp/ProcessorInitializer.hpp @@ -5,7 +5,7 @@ #ifndef OPENMW_INIT_PROCESSORS_HPP #define OPENMW_INIT_PROCESSORS_HPP -void init_processors(); +void ProcessorInitializer(); #endif //OPENMW_INIT_PROCESSORS_HPP