diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-02 02:33:55 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-02 02:37:54 +0100 |
commit | 85b64ad76705cd152fb2b0525de75fe4e832c31c (patch) | |
tree | c95101d899b565da4ec99e43d6c5f4796a6c1385 /application/MultiMC.h | |
parent | 3a4304d89dc59a5f4045c1f3f2b504ba188adb33 (diff) | |
download | MultiMC-85b64ad76705cd152fb2b0525de75fe4e832c31c.tar MultiMC-85b64ad76705cd152fb2b0525de75fe4e832c31c.tar.gz MultiMC-85b64ad76705cd152fb2b0525de75fe4e832c31c.tar.lz MultiMC-85b64ad76705cd152fb2b0525de75fe4e832c31c.tar.xz MultiMC-85b64ad76705cd152fb2b0525de75fe4e832c31c.zip |
NOISSUE MCEdit integration - remove old 'tool', replace with Worlds
Diffstat (limited to 'application/MultiMC.h')
-rw-r--r-- | application/MultiMC.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/application/MultiMC.h b/application/MultiMC.h index e7f41f18..4deb95d1 100644 --- a/application/MultiMC.h +++ b/application/MultiMC.h @@ -33,6 +33,7 @@ class BaseProfilerFactory; class BaseDetachedToolFactory; class TranslationDownloader; class ITheme; +class MCEditTool; #if defined(MMC) #undef MMC @@ -105,6 +106,11 @@ public: return m_icons; } + MCEditTool *mcedit() const + { + return m_mcedit.get(); + } + std::shared_ptr<MojangAccountList> accounts() const { return m_accounts; @@ -120,11 +126,6 @@ public: return m_profilers; } - const QMap<QString, std::shared_ptr<BaseDetachedToolFactory>> &tools() const - { - return m_tools; - } - /// this is the root of the 'installation'. Used for automatic updates const QString &root() { @@ -166,6 +167,7 @@ private: void initNetwork(); void initInstances(); void initAccounts(); + void initMCEdit(); private: QDateTime startTime; @@ -186,9 +188,9 @@ private: std::shared_ptr<TranslationDownloader> m_translationChecker; std::shared_ptr<GenericPageProvider> m_globalSettingsProvider; std::map<QString, std::unique_ptr<ITheme>> m_themes; + std::unique_ptr<MCEditTool> m_mcedit; QMap<QString, std::shared_ptr<BaseProfilerFactory>> m_profilers; - QMap<QString, std::shared_ptr<BaseDetachedToolFactory>> m_tools; QString m_rootPath; Status m_status = MultiMC::Failed; |