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)
|
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";
|
||||||
|
|
||||||
|
|||||||
@@ -2,4 +2,6 @@
|
|||||||
|
|
||||||
#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
|
||||||
Reference in New Issue
Block a user