summaryrefslogtreecommitdiffstats
path: root/game/client/gui/language.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
committeruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
commit8bcbd2729388edc63c82d77d314b583af1447c49 (patch)
tree460c2b509372077f6adf95d72c4245988a580aed /game/client/gui/language.cc
parent7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff)
downloadvoxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2
voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip
Cleanup math with qfengine ports again
Diffstat (limited to 'game/client/gui/language.cc')
-rw-r--r--game/client/gui/language.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/game/client/gui/language.cc b/game/client/gui/language.cc
index 57a43fe..d10f88b 100644
--- a/game/client/gui/language.cc
+++ b/game/client/gui/language.cc
@@ -5,6 +5,7 @@
#include "core/config/string.hh"
#include "core/io/config_map.hh"
+#include "core/io/physfs.hh"
#include "client/gui/settings.hh"
@@ -40,7 +41,7 @@ void gui::language::init(void)
auto file = PHYSFS_openRead(std::string(MANIFEST_PATH).c_str());
if(file == nullptr) {
- spdlog::critical("language: {}: {}", MANIFEST_PATH, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
+ spdlog::critical("language: {}: {}", MANIFEST_PATH, io::physfs_error());
std::terminate();
}
@@ -113,7 +114,7 @@ void gui::language::set(LanguageIterator new_language)
auto file = PHYSFS_openRead(path.c_str());
if(file == nullptr) {
- spdlog::warn("language: {}: {}", path, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
+ spdlog::warn("language: {}: {}", path, io::physfs_error());
send_language_event(new_language);
return;
}