diff options
author | Sky <git@bunnies.cc> | 2014-01-05 00:14:10 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2014-01-05 00:14:10 +0000 |
commit | 7d5fb1e99be24a884a69f3cf521aee8e310e2a6e (patch) | |
tree | 51d25c7f760eef471de31bf5b1a1e563e87def3c /MultiMC.h | |
parent | 79158144df1b606982bfa722447416c9549de860 (diff) | |
parent | e558584af0e6a168d76868e89d132aeebd0aa36a (diff) | |
download | PrismLauncher-7d5fb1e99be24a884a69f3cf521aee8e310e2a6e.tar.gz PrismLauncher-7d5fb1e99be24a884a69f3cf521aee8e310e2a6e.tar.bz2 PrismLauncher-7d5fb1e99be24a884a69f3cf521aee8e310e2a6e.zip |
Merge branch 'develop' of github.com:MultiMC/MultiMC5 into develop
Diffstat (limited to 'MultiMC.h')
-rw-r--r-- | MultiMC.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -17,6 +17,7 @@ class QNetworkAccessManager; class ForgeVersionList; class JavaVersionList; class UpdateChecker; +class NotificationChecker; class NewsChecker; #if defined(MMC) @@ -90,6 +91,11 @@ public: return m_updateChecker; } + std::shared_ptr<NotificationChecker> notificationChecker() + { + return m_notificationChecker; + } + std::shared_ptr<NewsChecker> newsChecker() { return m_newsChecker; @@ -125,6 +131,29 @@ public: */ bool openJsonEditor(const QString &filename); + /// this is the root of the 'installation'. Used for automatic updates + const QString &root() + { + return rootPath; + } + /// this is the where the binary files reside + const QString &bin() + { + return binPath; + } + /// this is the work/data path. All user data is here. + const QString &data() + { + return dataPath; + } + /** + * this is the original work path before it was changed by the adjustment mechanism + */ + const QString &origcwd() + { + return origcwdPath; + } + private: void initLogger(); @@ -143,6 +172,7 @@ private: std::shared_ptr<SettingsObject> m_settings; std::shared_ptr<InstanceList> m_instances; std::shared_ptr<UpdateChecker> m_updateChecker; + std::shared_ptr<NotificationChecker> m_notificationChecker; std::shared_ptr<NewsChecker> m_newsChecker; std::shared_ptr<MojangAccountList> m_accounts; std::shared_ptr<IconList> m_icons; @@ -157,6 +187,11 @@ private: QString m_updateOnExitPath; + QString rootPath; + QString binPath; + QString dataPath; + QString origcwdPath; + Status m_status = MultiMC::Failed; MultiMCVersion m_version; }; |