25 #include "configuration/doomseekerconfig.h"
26 #include "ini/inisection.h"
27 #include "ini/inivariable.h"
29 #include "plugins/engineplugin.h"
30 #include "templatedpathresolver.h"
60 return d->exeTypeName;
75 QString path = setting.
value().toString();
77 if (path.trimmed().isEmpty())
87 error = tr(
"The %1 executable for %2 doesn't exist:\n%3")
90 .arg(fi.absoluteFilePath());
95 if (fi.isDir() && !fi.isBundle())
97 error = tr(
"The path to %1 executable for %2 is a directory:\n%3")
100 .arg(fi.absoluteFilePath());
105 return fi.absoluteFilePath();
110 return d->programName;
115 d->configKey = keyName;
120 d->exeTypeName = name;
125 d->programName = name;
149 ExeFilePath::ExeFilePath(
const QString &path)
152 d->workingDir = QFileInfo(path).path();
160 ExeFilePath::~ExeFilePath()
171 QString ExeFilePath::path()
const
176 ExeFilePath &ExeFilePath::setPath(
const QString &path)
182 QString ExeFilePath::workingDir()
const
184 return d->workingDir;
187 ExeFilePath &ExeFilePath::setWorkingDir(
const QString &path)
189 d->workingDir = path;