Allow --load to work with -a.

This commit is contained in:
Arthur Britto
2013-03-07 13:02:06 -08:00
parent 850125acab
commit 461c4a0b9f

View File

@@ -26,7 +26,9 @@ Application* theApp = NULL;
DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount)
{
boost::filesystem::path pPath = theConfig.RUN_STANDALONE ? "" : theConfig.DATA_DIR / strName;
boost::filesystem::path pPath = theConfig.RUN_STANDALONE && !Config::LOAD
? "" // Use temporary files.
: theConfig.DATA_DIR / strName; // Use regular db files.
mDatabase = new SqliteDatabase(pPath.string().c_str());
mDatabase->connect();