Skip to content

Commit 0faeb1b

Browse files
committed
[external/gamekit] Updated. Client and server now have different names in the log.
1 parent 98d9431 commit 0faeb1b

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

source/client/core/ClientApplication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ void ClientApplication::init() {
5555
m_argumentParser.addArgument("working-dir", {"-w", "--working-dir", "Change the working direction to <dir>.", "dir"});
5656
m_argumentParser.addArgument("texture-pack", {"-t", "--texture-pack", "Use texture pack <name>.", "name"});
5757

58+
m_loggerHandler.setName("client");
59+
5860
gk::CoreApplication::init();
5961

6062
m_window.addVertexAttribute(VertexAttribute::Coord3d, "coord3d", 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast<GLvoid *>(offsetof(Vertex, coord3d)));

source/server/core/ServerApplication.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ ServerApplication::ServerApplication(gk::EventHandler &eventHandler) {
6060
void ServerApplication::init() {
6161
std::srand(std::time(nullptr));
6262

63+
m_loggerHandler.setName("server");
64+
gk::LoggerHandler::setInstance(m_loggerHandler);
65+
6366
BlockGeometry::initOrientation();
6467

6568
m_argumentParser.addArgument("port", {"-p", "--port", "Select the port to use.", "port"});

source/server/core/ServerApplication.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class ServerApplication {
6464
gk::ArgumentParser m_argumentParser;
6565
gk::GameClock m_clock;
6666
gk::EventHandler *m_eventHandler = nullptr;
67+
gk::LoggerHandler m_loggerHandler;
6768

6869
Registry m_registry;
6970

0 commit comments

Comments
 (0)