summaryrefslogtreecommitdiffstats
path: root/logic/MinecraftProcess.h
diff options
context:
space:
mode:
authorStiepen22 <stiepen22@gmx.de>2013-09-08 15:02:52 +0200
committerStiepen22 <stiepen22@gmx.de>2013-09-08 15:02:52 +0200
commitdab2bbe4e79cfd8b3b72b8d2fd0e5bd66e0281a9 (patch)
treefa72bb238a11e2f98cf6816c4a8540f2abb0efc9 /logic/MinecraftProcess.h
parent5cac21ca6387a3cbd5492b933c5ad6d7b76b8bc7 (diff)
downloadMultiMC-dab2bbe4e79cfd8b3b72b8d2fd0e5bd66e0281a9.tar
MultiMC-dab2bbe4e79cfd8b3b72b8d2fd0e5bd66e0281a9.tar.gz
MultiMC-dab2bbe4e79cfd8b3b72b8d2fd0e5bd66e0281a9.tar.lz
MultiMC-dab2bbe4e79cfd8b3b72b8d2fd0e5bd66e0281a9.tar.xz
MultiMC-dab2bbe4e79cfd8b3b72b8d2fd0e5bd66e0281a9.zip
Added console coloring and made the log not contain any usernames/session ids
Diffstat (limited to 'logic/MinecraftProcess.h')
-rw-r--r--logic/MinecraftProcess.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/MinecraftProcess.h b/logic/MinecraftProcess.h
index 248ad807..a1dfa23f 100644
--- a/logic/MinecraftProcess.h
+++ b/logic/MinecraftProcess.h
@@ -61,6 +61,8 @@ public:
void killMinecraft();
+ inline void setLogin(QString user, QString sid) { username = user; sessionID = sid; }
+
signals:
/**
* @brief emitted when mc has finished and the PostLaunchCommand was run
@@ -87,4 +89,7 @@ protected slots:
void on_stdOut();
private:
bool killed;
+ MessageLevel::Enum getLevel(const QString &message, MessageLevel::Enum defaultLevel);
+ QString sessionID;
+ QString username;
};