Skip to content

Commit

Permalink
[external/gamekit] Updated. Client and server now have different name…
Browse files Browse the repository at this point in the history
…s in the log.
  • Loading branch information
Unarelith committed May 31, 2020
1 parent 98d9431 commit 0faeb1b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/client/core/ClientApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ void ClientApplication::init() {
m_argumentParser.addArgument("working-dir", {"-w", "--working-dir", "Change the working direction to <dir>.", "dir"});
m_argumentParser.addArgument("texture-pack", {"-t", "--texture-pack", "Use texture pack <name>.", "name"});

m_loggerHandler.setName("client");

gk::CoreApplication::init();

m_window.addVertexAttribute(VertexAttribute::Coord3d, "coord3d", 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast<GLvoid *>(offsetof(Vertex, coord3d)));
Expand Down
3 changes: 3 additions & 0 deletions source/server/core/ServerApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ ServerApplication::ServerApplication(gk::EventHandler &eventHandler) {
void ServerApplication::init() {
std::srand(std::time(nullptr));

m_loggerHandler.setName("server");
gk::LoggerHandler::setInstance(m_loggerHandler);

BlockGeometry::initOrientation();

m_argumentParser.addArgument("port", {"-p", "--port", "Select the port to use.", "port"});
Expand Down
1 change: 1 addition & 0 deletions source/server/core/ServerApplication.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class ServerApplication {
gk::ArgumentParser m_argumentParser;
gk::GameClock m_clock;
gk::EventHandler *m_eventHandler = nullptr;
gk::LoggerHandler m_loggerHandler;

Registry m_registry;

Expand Down

0 comments on commit 0faeb1b

Please sign in to comment.