summaryrefslogtreecommitdiffstats
path: root/game/client/window_title.cc
blob: 517429df5efe7e25de159035a530dad498f1a329 (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/window_title.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 = 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());
}