diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-08-18 02:25:24 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-08-18 08:51:12 +0200 |
commit | 96fdaebb5c8c8902c98c1fb43e755cf90fc15198 (patch) | |
tree | bb4e1ace6bb0800a5991884d5f07b41267699283 /logic/BaseInstance.h | |
parent | 4e3af265dad57a27af4051cb574fb90539d287d0 (diff) | |
download | MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.gz MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.lz MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.xz MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.zip |
GH-926 implement log cleaning functionality
Also adds gzip compressed log support
Diffstat (limited to 'logic/BaseInstance.h')
-rw-r--r-- | logic/BaseInstance.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h index 9c282bbc..bcd1e0da 100644 --- a/logic/BaseInstance.h +++ b/logic/BaseInstance.h @@ -26,6 +26,7 @@ #include "BaseVersionList.h" #include "auth/MojangAccount.h" #include "launch/MessageLevel.h" +#include "pathmatcher/IPathMatcher.h" class QDir; class Task; @@ -158,13 +159,17 @@ public: */ virtual std::shared_ptr<Task> createJarModdingTask() = 0; - /*! * Create envrironment variables for running the instance */ virtual QProcessEnvironment createEnvironment() = 0; /*! + * Returns a matcher that can maps relative paths within the instance to whether they are 'log files' + */ + virtual IPathMatcher::Ptr getLogFileMatcher() = 0; + + /*! * does any necessary cleanups after the instance finishes. also runs before\ * TODO: turn into a task that can run asynchronously */ |