disable windows console and add option for it

This commit is contained in:
Milxnor
2023-05-21 21:05:42 -04:00
parent ff7b66bee1
commit 5f9a5509d3
2 changed files with 5 additions and 1 deletions

View File

@@ -90,10 +90,12 @@ void InitializeExitHook()
DWORD WINAPI Main(LPVOID) DWORD WINAPI Main(LPVOID)
{ {
#ifdef SHOW_WINDOWS_CONSOLE
AllocConsole(); AllocConsole();
FILE* fptr; FILE* fptr;
freopen_s(&fptr, "CONOUT$", "w+", stdout); freopen_s(&fptr, "CONOUT$", "w+", stdout);
#endif SHOW_WINDOWS_CONSOLE
std::cout << "Initializing Cobalt (made by Milxnor#3531).\n"; std::cout << "Initializing Cobalt (made by Milxnor#3531).\n";

View File

@@ -3,3 +3,5 @@
#define URL_PROTOCOL "http" #define URL_PROTOCOL "http"
#define URL_HOST "127.0.0.1" #define URL_HOST "127.0.0.1"
#define URL_PORT "3551" #define URL_PORT "3551"
// #define SHOW_WINDOWS_CONSOLE