summaryrefslogtreecommitdiffstats
path: root/MultiMC.h
diff options
context:
space:
mode:
Diffstat (limited to 'MultiMC.h')
-rw-r--r--MultiMC.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/MultiMC.h b/MultiMC.h
index 63eed83a..33aebab0 100644
--- a/MultiMC.h
+++ b/MultiMC.h
@@ -2,11 +2,12 @@
#include <QApplication>
#include <memory>
-#include "logger/QsLog.h"
-#include "logger/QsLogDest.h"
+#include <QDebug>
#include <QFlag>
#include <QIcon>
+#include <QDateTime>
+class QFile;
class MinecraftVersionList;
class LWJGLVersionList;
class HttpMetaCache;
@@ -62,7 +63,10 @@ public:
return m_settings;
}
-
+ qint64 timeSinceStart() const
+ {
+ return startTime.msecsTo(QDateTime::currentDateTime());
+ }
QIcon getThemedIcon(const QString& name);
@@ -153,6 +157,8 @@ private:
friend class UpdateCheckerTest;
friend class DownloadUpdateTaskTest;
+ QDateTime startTime;
+
std::shared_ptr<QTranslator> m_qt_translator;
std::shared_ptr<QTranslator> m_mmc_translator;
std::shared_ptr<SettingsObject> m_settings;
@@ -169,9 +175,6 @@ private:
QMap<QString, std::shared_ptr<BaseProfilerFactory>> m_profilers;
QMap<QString, std::shared_ptr<BaseDetachedToolFactory>> m_tools;
- QsLogging::DestinationPtr m_fileDestination;
- QsLogging::DestinationPtr m_debugDestination;
-
QString m_updateOnExitPath;
UpdateFlags m_updateOnExitFlags = None;
@@ -180,4 +183,6 @@ private:
QString dataPath;
Status m_status = MultiMC::Failed;
+public:
+ std::shared_ptr<QFile> logFile;
};