Skip to content

Commit f86ef5e

Browse files
committed
removing console window from release version
1 parent 51c81aa commit f86ef5e

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

.vs/Pacman-Clone/v16/.suo

1.5 KB
Binary file not shown.

.vs/Pacman-Clone/v16/Browse.VC.db

30.9 MB
Binary file not shown.

Src/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#include "GameManager.h"
2+
#include <Windows.h>
23
GameManager* gameManager = new GameManager();
34

45
int main()
56
{
7+
#ifdef NDEBUG
8+
HWND hwnd = GetConsoleWindow();
9+
ShowWindow(hwnd, SW_HIDE);
10+
#endif
11+
612
gameManager->StartGameManager();
713

814
gameManager->Update();

x64/Release/Pacman-Clone.exe

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)