diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 14:50:33 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 14:50:33 +0500 |
| commit | 6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch) | |
| tree | f085049b9615a7d03cca5de40adb6529d6c13e11 /src/game/shared/game.cc | |
| parent | f40d09cb8f712e87691af4912f3630d92d692779 (diff) | |
| download | voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2 voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip | |
Just a big Ctrl+H refactoring
Diffstat (limited to 'src/game/shared/game.cc')
| -rw-r--r-- | src/game/shared/game.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/shared/game.cc b/src/game/shared/game.cc index a3a724d..e839e6a 100644 --- a/src/game/shared/game.cc +++ b/src/game/shared/game.cc @@ -7,7 +7,7 @@ static std::filesystem::path get_gamepath(void) { - if(auto gamepath = io::cmdline::get_cstr("gamepath")) { + if(auto gamepath = 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? @@ -19,7 +19,7 @@ static std::filesystem::path get_gamepath(void) static std::filesystem::path get_userpath(void) { - if(auto userpath = io::cmdline::get_cstr("userpath")) { + if(auto userpath = 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? @@ -67,10 +67,10 @@ void shared_game::init(int argc, char** argv, std::string_view logfile) constexpr auto default_loglevel = spdlog::level::trace; #endif - if(io::cmdline::contains("quiet")) { + if(cmdline::contains("quiet")) { logger->set_level(spdlog::level::warn); } - else if(io::cmdline::contains("verbose")) { + else if(cmdline::contains("verbose")) { logger->set_level(spdlog::level::trace); } else { @@ -81,7 +81,7 @@ void shared_game::init(int argc, char** argv, std::string_view logfile) logger->flush(); if(!PHYSFS_init(argv[0])) { - spdlog::critical("physfs: init failed: {}", io::physfs_error()); + spdlog::critical("physfs: init failed: {}", physfs_error()); std::terminate(); } @@ -96,17 +96,17 @@ void shared_game::init(int argc, char** argv, std::string_view logfile) std::filesystem::create_directories(userpath, ignore_error); if(!PHYSFS_mount(gamepath.string().c_str(), nullptr, false)) { - spdlog::critical("physfs: mount {} failed: {}", gamepath.string(), io::physfs_error()); + spdlog::critical("physfs: mount {} failed: {}", gamepath.string(), physfs_error()); std::terminate(); } if(!PHYSFS_mount(userpath.string().c_str(), nullptr, false)) { - spdlog::critical("physfs: mount {} failed: {}", userpath.string(), io::physfs_error()); + spdlog::critical("physfs: mount {} failed: {}", userpath.string(), physfs_error()); std::terminate(); } if(!PHYSFS_setWriteDir(userpath.string().c_str())) { - spdlog::critical("physfs: setwritedir {} failed: {}", userpath.string(), io::physfs_error()); + spdlog::critical("physfs: setwritedir {} failed: {}", userpath.string(), physfs_error()); std::terminate(); } @@ -121,7 +121,7 @@ void shared_game::shutdown(void) enet_deinitialize(); if(!PHYSFS_deinit()) { - spdlog::critical("physfs: deinit failed: {}", io::physfs_error()); + spdlog::critical("physfs: deinit failed: {}", physfs_error()); std::terminate(); } } |
