diff options
Diffstat (limited to 'src/categories.cpp')
| -rw-r--r-- | src/categories.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/categories.cpp b/src/categories.cpp index b1bd899e..3d625791 100644 --- a/src/categories.cpp +++ b/src/categories.cpp @@ -33,6 +33,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. using namespace MOBase; +CategoryFactory* CategoryFactory::s_Instance = nullptr; QString CategoryFactory::categoriesFilePath() { @@ -50,6 +51,11 @@ CategoryFactory::CategoryFactory() : QObject() { } +QString CategoryFactory::nexusMappingFilePath() +{ + return qApp->property("dataPath").toString() + "/nexuscatmap.dat"; +} + void CategoryFactory::loadCategories() { reset(); @@ -179,6 +185,11 @@ void CategoryFactory::setParents() } } +void CategoryFactory::cleanup() +{ + delete s_Instance; + s_Instance = nullptr; +} void CategoryFactory::saveCategories() { |
