summaryrefslogtreecommitdiffstats
path: root/game/client/gui/window_title.cc
blob: 91e308f001d111d62bbe5dd3c8b28f4c5810c681 (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 {}: {}", project_version_string, splash::get());
    }
    else {
        title = std::format("Voxelius {}: {} [NOSOUND]", project_version_string, splash::get());
    }

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