summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/MinecraftInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-07-15 14:04:09 +0200
committerPetr Mrázek <peterix@gmail.com>2018-07-15 14:04:09 +0200
commit03280cc62e75f8073f8d3d9e9e3952acf21fa77d (patch)
tree06f7546fb4941b51ca2367d9cdb257011271452a /api/logic/minecraft/MinecraftInstance.h
parent128bce6acb4fa320b70e580b2d2e0db5d41db8e6 (diff)
downloadMultiMC-03280cc62e75f8073f8d3d9e9e3952acf21fa77d.tar
MultiMC-03280cc62e75f8073f8d3d9e9e3952acf21fa77d.tar.gz
MultiMC-03280cc62e75f8073f8d3d9e9e3952acf21fa77d.tar.lz
MultiMC-03280cc62e75f8073f8d3d9e9e3952acf21fa77d.tar.xz
MultiMC-03280cc62e75f8073f8d3d9e9e3952acf21fa77d.zip
NOISSUE separate new mods model from the simple one
It should list mods in various locations...
Diffstat (limited to 'api/logic/minecraft/MinecraftInstance.h')
-rw-r--r--api/logic/minecraft/MinecraftInstance.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/api/logic/minecraft/MinecraftInstance.h b/api/logic/minecraft/MinecraftInstance.h
index 3be15b1c..f1499ef6 100644
--- a/api/logic/minecraft/MinecraftInstance.h
+++ b/api/logic/minecraft/MinecraftInstance.h
@@ -6,7 +6,8 @@
#include <QDir>
#include "multimc_logic_export.h"
-class ModList;
+class ModsModel;
+class SimpleModList;
class WorldList;
class LaunchStep;
class ComponentList;
@@ -41,6 +42,7 @@ public:
QString texturePacksDir() const;
QString loaderModsDir() const;
QString coreModsDir() const;
+ QString modsCacheLocation() const;
QString libDir() const;
QString worldDir() const;
QDir jarmodsPath() const;
@@ -57,10 +59,11 @@ public:
std::shared_ptr<ComponentList> getComponentList() const;
////// Mod Lists //////
- std::shared_ptr<ModList> loaderModList() const;
- std::shared_ptr<ModList> coreModList() const;
- std::shared_ptr<ModList> resourcePackList() const;
- std::shared_ptr<ModList> texturePackList() const;
+ std::shared_ptr<ModsModel> modsModel() const;
+ std::shared_ptr<SimpleModList> loaderModList() const;
+ std::shared_ptr<SimpleModList> coreModList() const;
+ std::shared_ptr<SimpleModList> resourcePackList() const;
+ std::shared_ptr<SimpleModList> texturePackList() const;
std::shared_ptr<WorldList> worldList() const;
@@ -114,10 +117,11 @@ private:
protected: // data
std::shared_ptr<ComponentList> m_components;
- mutable std::shared_ptr<ModList> m_loader_mod_list;
- mutable std::shared_ptr<ModList> m_core_mod_list;
- mutable std::shared_ptr<ModList> m_resource_pack_list;
- mutable std::shared_ptr<ModList> m_texture_pack_list;
+ mutable std::shared_ptr<ModsModel> m_mods_model;
+ mutable std::shared_ptr<SimpleModList> m_loader_mod_list;
+ mutable std::shared_ptr<SimpleModList> m_core_mod_list;
+ mutable std::shared_ptr<SimpleModList> m_resource_pack_list;
+ mutable std::shared_ptr<SimpleModList> m_texture_pack_list;
mutable std::shared_ptr<WorldList> m_world_list;
};