Skip to content

Commit

Permalink
windows console disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Surer committed Sep 22, 2022
1 parent a3aab6f commit c115041
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OpenGL/src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#include "ui/Button.hpp"
#include "ui/Component.hpp"
#include "ui/Root.hpp"
#ifdef _WIN32
#include <windows.h>
#endif

#ifdef EMSCRIPTEN
#include <emscripten.h>
Expand Down Expand Up @@ -149,8 +152,10 @@ void showMainMenu(Viewport& vp) {


int main(int argc, char* argv[]) {
#ifdef DEBUG
#ifdef DEBUG || !_WIN32
spdlog::set_level(spdlog::level::debug);
#else
ShowWindow(GetConsoleWindow(), SW_HIDE);
#endif
spdlog::info("---- Main ----");
spdlog::debug("Debug logging is enabled.");
Expand Down

0 comments on commit c115041

Please sign in to comment.