summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-07-22 09:01:04 +0200
committerPetr Mrázek <peterix@gmail.com>2015-07-22 09:01:04 +0200
commit6310f6569c2630f27ad72dc0a5fef9f9fec5a88c (patch)
tree472be93fc6d94d38e0830d87186eee25c01dcb9c /logic/BaseInstance.h
parent2fc18921b04536285ad82e49d61faaeb599c6d46 (diff)
downloadMultiMC-6310f6569c2630f27ad72dc0a5fef9f9fec5a88c.tar
MultiMC-6310f6569c2630f27ad72dc0a5fef9f9fec5a88c.tar.gz
MultiMC-6310f6569c2630f27ad72dc0a5fef9f9fec5a88c.tar.lz
MultiMC-6310f6569c2630f27ad72dc0a5fef9f9fec5a88c.tar.xz
MultiMC-6310f6569c2630f27ad72dc0a5fef9f9fec5a88c.zip
GH-1053 move guessLevel to instances
Diffstat (limited to 'logic/BaseInstance.h')
-rw-r--r--logic/BaseInstance.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h
index 6201f1ac..9c282bbc 100644
--- a/logic/BaseInstance.h
+++ b/logic/BaseInstance.h
@@ -25,6 +25,7 @@
#include "settings/INIFile.h"
#include "BaseVersionList.h"
#include "auth/MojangAccount.h"
+#include "launch/MessageLevel.h"
class QDir;
class Task;
@@ -94,6 +95,12 @@ public:
QString getPostExitCommand();
QString getWrapperCommand();
+ /// guess log level from a line of game log
+ virtual MessageLevel::Enum guessLevel(const QString &line, MessageLevel::Enum level)
+ {
+ return level;
+ };
+
virtual QStringList extraArguments() const;
virtual QString intendedVersionId() const = 0;