blob: cfa25a3ca2b20eb2b8b2d3a217596c438a5ac052 (
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/window_title.hh"
#include "core/feature.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 = fmt::format("Voxelius {}: {}", PROJECT_VERSION_STRING, splash::get());
} else {
title = fmt::format("Voxelius {}: {} [NOSOUND]", PROJECT_VERSION_STRING, splash::get());
}
glfwSetWindowTitle(globals::window, title.c_str());
}
|