This commit is contained in:
jed
2011-10-28 16:51:35 -07:00
parent e68b0fb8d1
commit 7436a8deec
29 changed files with 141 additions and 129 deletions

View File

@@ -34,7 +34,8 @@ Application::Application()
void Application::run()
{
theApp->setDB(new SqliteDatabase("data.db"));
string filename=strprintf("%sdata.db",theConfig.DATA_DIR);
theApp->setDB(new SqliteDatabase(filename.c_str()));
mDatabase->connect();
if(theConfig.PEER_PORT)