From 65fac3220e870160e888da4bc8e826653a8a0720 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 19 Feb 2024 08:22:56 +0000 Subject: Updated PhysicsFS API usage Unfortunately, since we're making a difference between config and data, and also want to know where to write screenshots, we can't get rid of PHYSFS_getUserDir entirely. We'd need a replacement to get rid of the deprecation warnings. Also removed copying of old config file at "/.tmw/config.xml". --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index eecb60e7..b3fd699c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -214,7 +214,7 @@ int main(int argc, char *argv[]) // Initialize PhysicsFS if (!PHYSFS_init(argv[0])) { std::cout << "Error while initializing PhysFS: " - << PHYSFS_getLastError() << std::endl; + << PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()) << std::endl; return 1; } atexit((void(*)()) PHYSFS_deinit); -- cgit v1.2.3-70-g09d2