Now saving program output to log files.
This commit is contained in:
parent
d38946e097
commit
a83e4d20bf
1
.gitignore
vendored
1
.gitignore
vendored
@ -66,6 +66,7 @@ openminer_server
|
||||
# Misc
|
||||
*.dat
|
||||
*.zip
|
||||
logs
|
||||
saves
|
||||
test_atlas.png
|
||||
config/client.lua
|
||||
|
2
external/gamekit
vendored
2
external/gamekit
vendored
@ -1 +1 @@
|
||||
Subproject commit 63755c6be5d724657881f06fd6a322694e9672d1
|
||||
Subproject commit c031d48f690d2fe27293c83bde3d3261e91d646b
|
@ -59,6 +59,9 @@ bool ClientApplication::init() {
|
||||
|
||||
m_loggerHandler.setName("client");
|
||||
|
||||
fs::create_directory("logs");
|
||||
m_loggerHandler.openLogFile("logs/openminer.log");
|
||||
|
||||
gk::CoreApplication::init();
|
||||
|
||||
m_window.addVertexAttribute(VertexAttribute::Coord3d, "coord3d", 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast<GLvoid *>(offsetof(Vertex, coord3d)));
|
||||
|
@ -67,6 +67,9 @@ bool ServerApplication::init() {
|
||||
gk::LoggerHandler::setInstance(m_loggerHandler);
|
||||
m_loggerHandler.setName("server");
|
||||
|
||||
fs::create_directory("logs");
|
||||
m_loggerHandler.openLogFile("logs/openminer_server.log");
|
||||
|
||||
BlockGeometry::initOrientation();
|
||||
|
||||
m_argumentParser.addArgument("port", {"-p", "--port", "Select the port to use.", "port"});
|
||||
|
Loading…
x
Reference in New Issue
Block a user