summaryrefslogtreecommitdiffstats
path: root/MultiMC.h
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2013-12-29 17:51:16 +0100
committerJan Dalheimer <jan@dalheimer.de>2013-12-29 17:51:16 +0100
commit3380bc75633c63e8569b76981ac29528c58943ce (patch)
tree50df3e448edcb6ecfc68702698b318609327f360 /MultiMC.h
parent654f444f55de58f5cf0477e3b08b8f18e8d60831 (diff)
downloadMultiMC-3380bc75633c63e8569b76981ac29528c58943ce.tar
MultiMC-3380bc75633c63e8569b76981ac29528c58943ce.tar.gz
MultiMC-3380bc75633c63e8569b76981ac29528c58943ce.tar.lz
MultiMC-3380bc75633c63e8569b76981ac29528c58943ce.tar.xz
MultiMC-3380bc75633c63e8569b76981ac29528c58943ce.zip
Launch an editor for the custom.json file. Also allow overriding of the system default editor
Diffstat (limited to 'MultiMC.h')
-rw-r--r--MultiMC.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/MultiMC.h b/MultiMC.h
index 4a33fb69..17113181 100644
--- a/MultiMC.h
+++ b/MultiMC.h
@@ -6,7 +6,6 @@
#include "logger/QsLog.h"
#include "logger/QsLogDest.h"
-
class MinecraftVersionList;
class LWJGLVersionList;
class HttpMetaCache;
@@ -101,12 +100,12 @@ public:
/*!
* Installs update from the given update files directory.
*/
- void installUpdates(const QString& updateFilesDir, bool restartOnFinish=false);
+ void installUpdates(const QString &updateFilesDir, bool restartOnFinish = false);
/*!
* Sets MultiMC to install updates from the given directory when it exits.
*/
- void setUpdateOnExit(const QString& updateFilesDir);
+ void setUpdateOnExit(const QString &updateFilesDir);
/*!
* Gets the path to install updates from on exit.
@@ -114,6 +113,12 @@ public:
*/
QString getExitUpdatePath() const;
+ /*!
+ * Opens a json file using either a system default editor, or, if note empty, the editor
+ * specified in the settings
+ */
+ void openJsonEditor(const QString &filename);
+
private:
void initLogger();