GH-813 Add 'mcedit2.exe' to the list of things the MCEdit tool looks for
This commit is contained in:
parent
3b6574181e
commit
593111b144
@ -39,6 +39,10 @@ void MCEditTool::runImpl()
|
|||||||
{
|
{
|
||||||
program = mceditDir.absoluteFilePath("mcedit.exe");
|
program = mceditDir.absoluteFilePath("mcedit.exe");
|
||||||
}
|
}
|
||||||
|
else if (mceditDir.exists("mcedit2.exe"))
|
||||||
|
{
|
||||||
|
program = mceditDir.absoluteFilePath("mcedit2.exe");
|
||||||
|
}
|
||||||
QProcess::startDetached(program, QStringList() << save, mceditPath);
|
QProcess::startDetached(program, QStringList() << save, mceditPath);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -68,7 +72,7 @@ bool MCEditFactory::check(const QString &path, QString *error)
|
|||||||
*error = QObject::tr("Path does not exist");
|
*error = QObject::tr("Path does not exist");
|
||||||
return false;
|
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");
|
*error = QObject::tr("Path does not seem to be a MCEdit path");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user