diff options
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/moddb.cpp | 7 | ||||
-rw-r--r-- | src/resources/db/moddb.h | 4 |
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 |