Procházet zdrojové kódy

Don't require CoreData for headless builds

Josh Engebretson před 10 roky
rodič
revize
fa41bca07c
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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());