blob: 6f466683085579a636044d9427020b61f3b84f2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "client/pch.hh"
#include "client/gui/window_title.hh"
#include "core/version.hh"
#include "shared/splash.hh"
#include "client/globals.hh"
void gui::window_title::update(void)
{
std::string title;
if(globals::sound_ctx && globals::sound_dev) {
title = std::format("Voxelius {}: {}", version::semver, splash::get());
}
else {
title = std::format("Voxelius {}: {} [NOSOUND]", version::semver, splash::get());
}
glfwSetWindowTitle(globals::window, title.c_str());
}
|