summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-07-05 18:02:49 +0200
committerPetr Mrázek <peterix@gmail.com>2017-07-05 18:02:49 +0200
commitd6ab4b4a7fa9451963406911477316a1bc2c1cae (patch)
tree7248ded75c6b6e768bb2b7b7bcc37d88c1d5d7ab /application/MultiMC.h
parent74c455ff3572ed32c7538dde81d55c4f274ad5c4 (diff)
downloadMultiMC-d6ab4b4a7fa9451963406911477316a1bc2c1cae.tar
MultiMC-d6ab4b4a7fa9451963406911477316a1bc2c1cae.tar.gz
MultiMC-d6ab4b4a7fa9451963406911477316a1bc2c1cae.tar.lz
MultiMC-d6ab4b4a7fa9451963406911477316a1bc2c1cae.tar.xz
MultiMC-d6ab4b4a7fa9451963406911477316a1bc2c1cae.zip
NOISSUE rearrange global initialization
Diffstat (limited to 'application/MultiMC.h')
-rw-r--r--application/MultiMC.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/application/MultiMC.h b/application/MultiMC.h
index c9bba2f8..697fee7c 100644
--- a/application/MultiMC.h
+++ b/application/MultiMC.h
@@ -18,7 +18,6 @@ class SetupWizard;
class FolderInstanceProvider;
class GenericPageProvider;
class QFile;
-class LWJGLVersionList;
class HttpMetaCache;
class SettingsObject;
class InstanceList;
@@ -91,7 +90,7 @@ public:
}
std::shared_ptr<TranslationsModel> translations();
- std::shared_ptr<LWJGLVersionList> lwjgllist();
+
std::shared_ptr<JavaInstallList> javalist();
std::shared_ptr<InstanceList> instances() const
@@ -144,11 +143,6 @@ public:
InstanceWindow *showInstanceWindow(InstancePtr instance, QString page = QString());
MainWindow *showMainWindow(bool minimized = false);
- size_t numRunningInstances()
- {
- return m_runningInstances;
- }
-
void updateIsRunning(bool running);
bool updatesAreAllowed();
@@ -160,10 +154,6 @@ public slots:
bool kill(InstancePtr instance);
private slots:
- /**
- * Do all the things that should be done before we exit
- */
- void onExit();
void on_windowClose();
void messageReceived(const QString & message);
void controllerSucceeded();
@@ -172,19 +162,7 @@ private slots:
void setupWizardFinished(int status);
private:
- bool initLogger();
void shutdownLogger();
- void initIcons();
- void initThemes();
- void initGlobalSettings();
- void initTranslations();
- void initNetwork();
- void initInstances();
- void initAccounts();
- void initMCEdit();
- void initAnalytics();
- void initLegacyLwjgl();
- void shutdownAnalytics();
bool createSetupWizard();
void performMainStartupAction();
@@ -205,7 +183,6 @@ private:
std::shared_ptr<IconList> m_icons;
std::shared_ptr<UpdateChecker> m_updateChecker;
std::shared_ptr<MojangAccountList> m_accounts;
- std::shared_ptr<LWJGLVersionList> m_lwjgllist;
std::shared_ptr<JavaInstallList> m_javalist;
std::shared_ptr<TranslationsModel> m_translations;
std::shared_ptr<GenericPageProvider> m_globalSettingsProvider;
@@ -217,8 +194,10 @@ private:
QString m_rootPath;
Status m_status = MultiMC::StartingUp;
+#if defined Q_OS_WIN32
// used on Windows to attach the standard IO streams
bool consoleAttached = false;
+#endif
// FIXME: attach to instances instead.
struct InstanceXtras