mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-23 20:12:34 +00:00
SCRATCH nuke the overcomplicated logger, use a simple one.
This commit is contained in:
17
MultiMC.h
17
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user