summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-19 08:22:56 +0000
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-19 08:22:56 +0000
commit65fac3220e870160e888da4bc8e826653a8a0720 (patch)
tree676615b7aefa814dace3cdf7d42699ed01b2af58 /src/main.cpp
parenteab47c4f2674516d9499e837eff5b6b40f48213d (diff)
downloadMana-65fac3220e870160e888da4bc8e826653a8a0720.tar.gz
Mana-65fac3220e870160e888da4bc8e826653a8a0720.tar.bz2
Mana-65fac3220e870160e888da4bc8e826653a8a0720.tar.xz
Mana-65fac3220e870160e888da4bc8e826653a8a0720.zip
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".
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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);