From aaed751bf4430bf4b9b30cef532b8753b9f639ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:48:31 +0500 Subject: Replace most of C strings with string_view --- game/shared/game.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/shared/game.cc') diff --git a/game/shared/game.cc b/game/shared/game.cc index 62eaf13..94c2c1f 100644 --- a/game/shared/game.cc +++ b/game/shared/game.cc @@ -6,7 +6,7 @@ static std::filesystem::path get_gamepath(void) { - if(auto gamepath = io::cmdline::get("gamepath")) { + if(auto gamepath = io::cmdline::get_cstr("gamepath")) { // Allow users and third-party launchers to override // content location. Perhaps this would work to allow // for a Minecraft-like versioning approach? @@ -18,7 +18,7 @@ static std::filesystem::path get_gamepath(void) static std::filesystem::path get_userpath(void) { - if(auto userpath = io::cmdline::get("userpath")) { + if(auto userpath = io::cmdline::get_cstr("userpath")) { // Allow users and third-party launchers to override // user data location. Perhaps this would work to allow // for a Minecraft-like versioning approach? -- cgit