Browse Source

Don't require CoreData for headless builds

Josh Engebretson 9 years ago
parent
commit
fa41bca07c
1 changed files with 2 additions and 1 deletions
  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());