add debug output for physfs init failure
authoralfadur
Sat, 06 Oct 2018 00:23:41 +0300
changeset 13869 bd796e4d8920
parent 13866 b15ad95320fe
child 13870 a966b1914792
add debug output for physfs init failure
QTfrontend/util/FileEngine.cpp
--- a/QTfrontend/util/FileEngine.cpp	Fri Oct 05 16:54:26 2018 -0400
+++ b/QTfrontend/util/FileEngine.cpp	Sat Oct 06 00:23:41 2018 +0300
@@ -313,8 +313,10 @@
 
 FileEngineHandler::FileEngineHandler(char *argv0)
 {
-    PHYSFS_init(argv0);
-
+    if (!PHYSFS_init(argv0))
+    {
+        qDebug("PHYSFS initialization failed");
+    }
     qDebug("%s", QString("[PHYSFS] Init: %1").arg(errorStr()).toLocal8Bit().constData());
 }