From 6cd00aacfa22fed6a54a9b812f6b069ad16feec0 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 29 Jun 2025 22:24:42 +0500 Subject: Move game sources into src subdirectory --- src/game/client/window_title.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/game/client/window_title.cc (limited to 'src/game/client/window_title.cc') diff --git a/src/game/client/window_title.cc b/src/game/client/window_title.cc new file mode 100644 index 0000000..517429d --- /dev/null +++ b/src/game/client/window_title.cc @@ -0,0 +1,22 @@ +#include "client/pch.hh" + +#include "client/window_title.hh" + +#include "core/version.hh" + +#include "shared/splash.hh" + +#include "client/globals.hh" + +void window_title::update(void) +{ + std::string title; + + if(globals::sound_ctx && globals::sound_dev) { + title = std::format("Voxelius {}: {}", project_version_string, splash::get()); + } else { + title = std::format("Voxelius {}: {} [NOSOUND]", project_version_string, splash::get()); + } + + glfwSetWindowTitle(globals::window, title.c_str()); +} -- cgit