summaryrefslogtreecommitdiffstats
path: root/game/client/gui/window_title.cc
blob: 5a5aca222dc4df82de21a166ca4ea9644b795e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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 {}: {}", project_version_string, splash::get());
    } else {
        title = std::format("Voxelius {}: {} [NOSOUND]", project_version_string, splash::get());
    }

    glfwSetWindowTitle(globals::window, title.c_str());
}