summaryrefslogtreecommitdiffstats
path: root/logic/tools
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-06-11 02:33:02 +0200
committerPetr Mrázek <peterix@gmail.com>2015-06-11 02:33:02 +0200
commitb427a652adc7f300d8af3f5d566b851e2d2c30eb (patch)
treed11fb7ec15f56e4e993d6def3b39de5d5c1a0ef8 /logic/tools
parent9684d3b0a087b44b39ae8b007c08f82d3ddc6d8f (diff)
downloadMultiMC-b427a652adc7f300d8af3f5d566b851e2d2c30eb.tar
MultiMC-b427a652adc7f300d8af3f5d566b851e2d2c30eb.tar.gz
MultiMC-b427a652adc7f300d8af3f5d566b851e2d2c30eb.tar.lz
MultiMC-b427a652adc7f300d8af3f5d566b851e2d2c30eb.tar.xz
MultiMC-b427a652adc7f300d8af3f5d566b851e2d2c30eb.zip
GH-1009 use .sh instead of .pyc - .pyc doesn't work at all
Diffstat (limited to 'logic/tools')
-rw-r--r--logic/tools/MCEditTool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/tools/MCEditTool.cpp b/logic/tools/MCEditTool.cpp
index 03329a73..db45797f 100644
--- a/logic/tools/MCEditTool.cpp
+++ b/logic/tools/MCEditTool.cpp
@@ -68,9 +68,9 @@ void MCEditTool::runImpl()
{
program = mceditDir.absoluteFilePath("mcedit.py");
}
- else if (mceditDir.exists("mcedit.pyc"))
+ else if (mceditDir.exists("mcedit.sh"))
{
- program = mceditDir.absoluteFilePath("mcedit.pyc");
+ program = mceditDir.absoluteFilePath("mcedit.sh");
}
#elif defined(Q_OS_WIN32)
if (mceditDir.exists("mcedit.exe"))
@@ -115,7 +115,7 @@ bool MCEditFactory::check(const QString &path, QString *error)
*error = QObject::tr("Path does not exist");
return false;
}
- if (!dir.exists("mcedit.pyc") && !dir.exists("mcedit.py") && !dir.exists("mcedit.exe") && !dir.exists("Contents") && !dir.exists("mcedit2.exe"))
+ if (!dir.exists("mcedit.sh") && !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;