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/client/program.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'game/client/program.cc') diff --git a/game/client/program.cc b/game/client/program.cc index 9eba02f..6a2dfa0 100644 --- a/game/client/program.cc +++ b/game/client/program.cc @@ -2,6 +2,8 @@ #include "client/program.hh" +#include "core/io/physfs.hh" + #include "core/utils/string.hh" // This fills up the array of source lines and figures out @@ -76,7 +78,7 @@ bool GL_Program::setup(std::string_view vpath, std::string_view fpath) auto vfile = PHYSFS_openRead(vert_path.c_str()); if(vfile == nullptr) { - spdlog::warn("gl_program: {}: {}", vpath, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode())); + spdlog::warn("gl_program: {}: {}", vpath, io::physfs_error()); return false; } @@ -87,7 +89,7 @@ bool GL_Program::setup(std::string_view vpath, std::string_view fpath) auto ffile = PHYSFS_openRead(frag_path.c_str()); if(ffile == nullptr) { - spdlog::warn("gl_program: {}: {}", fpath, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode())); + spdlog::warn("gl_program: {}: {}", fpath, io::physfs_error()); return false; } -- cgit