Blob Blame History Raw
--- ValyriaTear-1.0.0/src/main.cpp.orig	2017-01-28 02:19:26.489656367 +0000
+++ ValyriaTear-1.0.0/src/main.cpp	2017-01-28 02:19:29.833647832 +0000
@@ -459,7 +459,7 @@
         chdir(path.c_str());
 #elif (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(SOLARIS)) && !defined(RELEASE_BUILD)
         // Look for data files in DATADIR only if they are not available in the current directory.
-        if(std::ifstream("dat/config/settings.lua") == NULL) {
+        if(!std::ifstream("dat/config/settings.lua")) {
             if(chdir(PKG_DATADIR) != 0) {
                 throw Exception("ERROR: failed to change directory to data location", __FILE__, __LINE__, __FUNCTION__);
             }
--- ValyriaTear-1.0.0/src/editor/editor_main.cpp.orig	2017-01-28 02:19:18.089677806 +0000
+++ ValyriaTear-1.0.0/src/editor/editor_main.cpp	2017-01-28 02:19:22.614666257 +0000
@@ -34,7 +34,7 @@
 #ifndef __MACH__
     // Look for data files in DATADIR only if they are not available in the
     // current directory.
-    if(std::ifstream("./dat/config/editor.lua") == NULL) {
+    if(!std::ifstream("./dat/config/editor.lua")) {
         if(chdir(PKG_DATADIR) != 0) {
             PRINT_ERROR << "failed to change directory to data location" << std::endl;
         }