summaryrefslogtreecommitdiff
path: root/src/categories.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-05 03:15:14 -0500
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-21 17:30:35 -0500
commit41c4d0922946b2f7b090f0d5844e04eb138e9c1a (patch)
tree81207b8a22b68ce6268d4da78bb2d163f467a17e /src/categories.cpp
parentfba3d52f5645bf2b0ec4a61f9b7fed9c4d481637 (diff)
Fix merge issues
Diffstat (limited to 'src/categories.cpp')
-rw-r--r--src/categories.cpp11
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()
{