diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 0000000..dcfcab7 --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,28 @@ +{ + "configurations": [ + { + "name": "x64-Debug", + "generator": "Ninja", + "configurationType": "Debug", + "inheritEnvironments": [ + "msvc_x64_x64" + ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "" + }, + { + "name": "x64-Release", + "generator": "Ninja", + "configurationType": "Release", + "inheritEnvironments": [ + "msvc_x64_x64" + ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "cmakeCommandArgs": "", + "buildCommandArgs": "", + "ctestCommandArgs": "" + } + ] +} \ No newline at end of file diff --git a/src/log.cpp b/src/log.cpp index 36a4056..ea95be1 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -1,10 +1,10 @@ #include "log.hpp" +#include #include #include #include #include -#include #include #include #include @@ -61,7 +61,9 @@ namespace game void Logger::write_raw(const std::string& message) { - std::println("{}", message); + std::fwrite(message.c_str(), 1, message.size(), stdout); + std::fwrite("\n", 1, 1, stdout); + std::fflush(stdout); if (file.is_open()) file << message << '\n' << std::flush; }