Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 9bc9056

Browse files
authored
merge: from dev
Randomize console title
2 parents ddca168 + f80222c commit 9bc9056

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/menu.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ GLFWwindow* window = nullptr;
2121

2222
bool gui::generateWindow()
2323
{
24+
const std::string randomWindowName = utils::randomString(12);
25+
26+
SetConsoleTitleA(randomWindowName.c_str());
27+
2428
glfwSetErrorCallback(nullptr);
2529
if (glfwInit() == GLFW_FALSE)
2630
return false;
2731

2832
// Create Window
2933
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
30-
window = glfwCreateWindow(1000, 560, utils::randomString(12).c_str(), nullptr, nullptr);
34+
window = glfwCreateWindow(1000, 560, randomWindowName.c_str(), nullptr, nullptr);
3135
if (!window)
3236
return false;
3337

0 commit comments

Comments
 (0)