summaryrefslogtreecommitdiff
path: root/src/resources/db
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
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')
-rw-r--r--src/resources/db/moddb.cpp7
-rw-r--r--src/resources/db/moddb.h4
2 files changed, 9 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;
+}
diff --git a/src/resources/db/moddb.h b/src/resources/db/moddb.h
index b0944e574..b09c47747 100644
--- a/src/resources/db/moddb.h
+++ b/src/resources/db/moddb.h
@@ -23,6 +23,8 @@
#ifndef RESOURCES_DB_MODDB_H
#define RESOURCES_DB_MODDB_H
+#include "resources/modinfo.h"
+
#include <string>
#include "localconsts.h"
@@ -38,6 +40,8 @@ namespace ModDB
ModInfo *get(const std::string &name) A_WARN_UNUSED;
void loadXmlFile(const std::string &fileName);
+
+ const ModInfos &getAll();
}
#endif // RESOURCES_DB_MODDB_H