Skip to content

Commit ed4dec1

Browse files
committed
added Option to hide terminal
1 parent 5bbb147 commit ed4dec1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#ifdef WIN32
22
#include <raylib_win32.h>
3+
#include <windows.h>
34
#endif
45

56
#include "RobloxData/GetStats.hpp"
@@ -23,10 +24,16 @@ int main(int argc, char **argv) {
2324
UseGui = false;
2425
} else if (arg == "--nofont") {
2526
UseFont = false;
26-
} else if (arg == "--help") {
27+
} else if (arg == "--noterm") {
28+
#ifdef WIN32
29+
HWND hwnd = GetConsoleWindow();
30+
ShowWindow(hwnd, SW_HIDE);
31+
#endif
32+
}else if (arg == "--help") {
2733
std::cout << "--universeid / --unid # Use To Set Universe ID\n"
2834
<< "--nogui # Uses Terminal As Output (def refresh 1 sec, clears screen)\n"
29-
<< "--nofont # Makes Gui Mode Not Load Font\n";
35+
<< "--nofont # Makes Gui Mode Not Load Font\n"
36+
<< "--noterm # Windows Only!!! Hides Terminal \n";
3037
return 0;
3138
}
3239
}

0 commit comments

Comments
 (0)