Skip to content

Commit

Permalink
Set to WindowedApp to not show console period
Browse files Browse the repository at this point in the history
  • Loading branch information
BttrDrgn committed May 11, 2022
1 parent 147505b commit 9d6673c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/windows.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ workspace "Radio.Garten"
targetname "radio.garten"
language "c++"
cppdialect "c++17"
kind "consoleapp"
kind "windowedapp"
warnings "off"

pchheader "stdafx.hpp"
Expand Down
8 changes: 6 additions & 2 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ void init_app()
int main(int argc, char* argv[])
{
#ifdef _WIN32
#ifdef NDEBUG
ShowWindow(GetConsoleWindow(), 0);
#ifdef DEBUG
AllocConsole();
SetConsoleTitleA("Radio.Garten Debug Console");

std::freopen("CONOUT$", "w", stdout);
std::freopen("CONIN$", "r", stdin);
#endif
#endif

Expand Down

0 comments on commit 9d6673c

Please sign in to comment.