summaryrefslogtreecommitdiff
path: root/src/resources/db/moddb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-09 13:12:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-09 13:12:18 +0300
commitb3ad7da111d1a21f14de39d84be97104a9666017 (patch)
tree72338ee95de5337acc4e00c6ff6ab8b2fc458d37 /src/resources/db/moddb.cpp
parent2e47d5e2897ffd8bcf85b499fe68a20f9f694ebb (diff)
downloadplus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.gz
plus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.bz2
plus-b3ad7da111d1a21f14de39d84be97104a9666017.tar.xz
plus-b3ad7da111d1a21f14de39d84be97104a9666017.zip
add mods tab in settings.
Diffstat (limited to 'src/resources/db/moddb.cpp')
-rw-r--r--src/resources/db/moddb.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/db/moddb.cpp b/src/resources/db/moddb.cpp
index f66a6dc48..aa785afdb 100644
--- a/src/resources/db/moddb.cpp
+++ b/src/resources/db/moddb.cpp
@@ -26,7 +26,6 @@
#include "logger.h"
#include "resources/beingcommon.h"
-#include "resources/modinfo.h"
#include "utils/dtor.h"
#include "utils/gettext.h"
@@ -58,7 +57,6 @@ void ModDB::loadXmlFile(const std::string &fileName)
{
logger->log("Mods Database: Error while loading %s!",
fileName.c_str());
- mLoaded = true;
return;
}
@@ -109,3 +107,8 @@ ModInfo *ModDB::get(const std::string &name)
else
return i->second;
}
+
+const ModInfos &ModDB::getAll()
+{
+ return mModInfos;
+}