summaryrefslogtreecommitdiffstats
path: root/game/client/main.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-11 13:48:31 +0500
committeruntodesu <kirill@untode.su>2025-09-11 13:48:31 +0500
commitaaed751bf4430bf4b9b30cef532b8753b9f639ce (patch)
tree16bc751c272ba27ad53ec48dbdd3a6d9e6a8d4c2 /game/client/main.cc
parent96bd73ae020ecca1f94698744c77498a89ad19f7 (diff)
downloadvoxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.tar.bz2
voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.zip
Replace most of C strings with string_view
Diffstat (limited to 'game/client/main.cc')
-rw-r--r--game/client/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/client/main.cc b/game/client/main.cc
index cb3e209..06a0da2 100644
--- a/game/client/main.cc
+++ b/game/client/main.cc
@@ -157,7 +157,7 @@ int main(int argc, char** argv)
shared_game::init(argc, argv);
- spdlog::info("Voxelius Client {}", project_version_string);
+ spdlog::info("Voxelius Client {}", version::semver);
glfwSetErrorCallback(&on_glfw_error);
@@ -312,7 +312,7 @@ int main(int argc, char** argv)
int vmode_width = DEFAULT_WIDTH;
int vmode_height = DEFAULT_HEIGHT;
- if(auto vmode = io::cmdline::get("mode")) {
+ if(auto vmode = io::cmdline::get_cstr("mode")) {
std::sscanf(vmode, "%dx%d", &vmode_width, &vmode_height);
vmode_height = math::max(vmode_height, MIN_HEIGHT);
vmode_width = math::max(vmode_width, MIN_WIDTH);