summaryrefslogtreecommitdiffstats
path: root/game/shared/splash.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/shared/splash.cc
parent7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff)
downloadvoxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2
voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip
Cleanup math with qfengine ports again
Diffstat (limited to 'game/shared/splash.cc')
-rw-r--r--game/shared/splash.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/shared/splash.cc b/game/shared/splash.cc
index 7515358..9d74ba9 100644
--- a/game/shared/splash.cc
+++ b/game/shared/splash.cc
@@ -2,6 +2,8 @@
#include "shared/splash.hh"
+#include "core/io/physfs.hh"
+
constexpr static std::string_view SPLASHES_FILENAME_CLIENT = "misc/splashes_client.txt";
constexpr static std::string_view SPLASHES_FILENAME_SERVER = "misc/splashes_server.txt";
constexpr static std::size_t SPLASH_SERVER_MAX_LENGTH = 32;
@@ -37,7 +39,7 @@ static void splash_init_filename(std::string_view filename)
splash_random.seed(std::random_device()());
}
else {
- splash_lines.push_back(std::format("{}: {}", filename, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode())));
+ splash_lines.push_back(std::format("{}: {}", filename, io::physfs_error()));
splash_random.seed(std::random_device()());
}
}