mirror of
https://github.com/Milxnor/Cobalt.git
synced 2026-01-13 02:22:22 +01:00
disable windows console and add option for it
This commit is contained in:
@@ -90,10 +90,12 @@ void InitializeExitHook()
|
||||
|
||||
DWORD WINAPI Main(LPVOID)
|
||||
{
|
||||
#ifdef SHOW_WINDOWS_CONSOLE
|
||||
AllocConsole();
|
||||
|
||||
FILE* fptr;
|
||||
freopen_s(&fptr, "CONOUT$", "w+", stdout);
|
||||
#endif SHOW_WINDOWS_CONSOLE
|
||||
|
||||
std::cout << "Initializing Cobalt (made by Milxnor#3531).\n";
|
||||
|
||||
|
||||
@@ -3,3 +3,5 @@
|
||||
#define URL_PROTOCOL "http"
|
||||
#define URL_HOST "127.0.0.1"
|
||||
#define URL_PORT "3551"
|
||||
|
||||
// #define SHOW_WINDOWS_CONSOLE
|
||||
Reference in New Issue
Block a user