|
|
@@ -62,11 +62,6 @@ namespace Atomic
|
|
|
arguments_ = GetArguments();
|
|
|
}
|
|
|
|
|
|
- // Seed the default Settings path
|
|
|
- FileSystem* fileSystem = GetSubsystem<FileSystem>();
|
|
|
- String settingspath = fileSystem->GetProgramDir() + "Settings/";
|
|
|
- AddEngineConfigSearchPath(settingspath);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
AppBase::~AppBase()
|
|
|
@@ -154,6 +149,16 @@ namespace Atomic
|
|
|
{
|
|
|
FileSystem* fileSystem = GetSubsystem<FileSystem>();
|
|
|
|
|
|
+ // if we haven't defined any search paths, insert default
|
|
|
+ if (!engineConfigSearchPaths_.Size())
|
|
|
+ {
|
|
|
+#ifdef ATOMIC_PLATFORM_OSX
|
|
|
+ AddEngineConfigSearchPath(fileSystem->GetProgramDir() + "../Resources/Settings/");
|
|
|
+#else
|
|
|
+ AddEngineConfigSearchPath(fileSystem->GetProgramDir() + "Settings/");
|
|
|
+#endif
|
|
|
+ }
|
|
|
+
|
|
|
for (unsigned i = 0; i < engineConfigSearchPaths_.Size(); i++)
|
|
|
{
|
|
|
const String& path = engineConfigSearchPaths_[i];
|