Sfoglia il codice sorgente

Don't require CoreData for headless builds

Josh Engebretson 10 anni fa
parent
commit
fa41bca07c
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Source/Atomic/Engine/Engine.cpp

+ 2 - 1
Source/Atomic/Engine/Engine.cpp

@@ -265,7 +265,8 @@ bool Engine::Initialize(const VariantMap& parameters)
                 success = cache->AddResourceDir(pathName);
         }
 
-        if (!success)
+        // ATOMIC: Only fail when CoreData can't be opened and not headless
+        if (!success && !headless_)
         {
             LOGERRORF("Failed to add resource path '%s', check the documentation on how to set the 'resource prefix path'",
                 resourcePaths[i].CString());