summaryrefslogtreecommitdiff
path: root/src/resources/db/moddb.cpp
diff options
context:
space:
mode:
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;
+}