From 593111b14463e9d5d08256061b981b5ab1cfb710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 1 Apr 2015 22:43:18 +0200 Subject: GH-813 Add 'mcedit2.exe' to the list of things the MCEdit tool looks for --- logic/tools/MCEditTool.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'logic/tools') diff --git a/logic/tools/MCEditTool.cpp b/logic/tools/MCEditTool.cpp index 1c7d9cd2..e44ce784 100644 --- a/logic/tools/MCEditTool.cpp +++ b/logic/tools/MCEditTool.cpp @@ -39,6 +39,10 @@ void MCEditTool::runImpl() { program = mceditDir.absoluteFilePath("mcedit.exe"); } + else if (mceditDir.exists("mcedit2.exe")) + { + program = mceditDir.absoluteFilePath("mcedit2.exe"); + } QProcess::startDetached(program, QStringList() << save, mceditPath); #endif } @@ -68,7 +72,7 @@ bool MCEditFactory::check(const QString &path, QString *error) *error = QObject::tr("Path does not exist"); return false; } - if (!dir.exists("mcedit.py") && !dir.exists("mcedit.exe") && !dir.exists("Contents")) + if (!dir.exists("mcedit.py") && !dir.exists("mcedit.exe") && !dir.exists("Contents") && !dir.exists("mcedit2.exe")) { *error = QObject::tr("Path does not seem to be a MCEdit path"); return false; -- cgit v1.2.3