From 8bcbd2729388edc63c82d77d314b583af1447c49 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 14 Sep 2025 19:16:44 +0500 Subject: Cleanup math with qfengine ports again --- game/shared/splash.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/shared/splash.cc') 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()()); } } -- cgit