summaryrefslogtreecommitdiffstats
path: root/game/client/window_title.cc
blob: fc113c2c0abcb9553a9c4dec004182b40b440b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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());
}