25 #include "configuration/doomseekerconfig.h"
26 #include "ini/inisection.h"
27 #include "ini/inivariable.h"
29 #include "plugins/engineplugin.h"
59 return d->exeTypeName;
74 QString path = setting.
value().toString();
76 if (path.trimmed().isEmpty())
85 if (!fi.exists() || (fi.isDir() && !fi.isBundle()))
89 error = tr(
"Executable for %1 %2:\n%3\nis a directory or doesn't exist.")
91 .arg(fi.absoluteFilePath());
96 return fi.absoluteFilePath();
101 return d->programName;
106 d->configKey = keyName;
111 d->exeTypeName = name;
116 d->programName = name;
122 return fi.absolutePath();
140 ExeFilePath::ExeFilePath(
const QString &path)
143 d->workingDir = QFileInfo(path).path();
151 ExeFilePath::~ExeFilePath()
162 QString ExeFilePath::path()
const
167 ExeFilePath &ExeFilePath::setPath(
const QString &path)
173 QString ExeFilePath::workingDir()
const
175 return d->workingDir;
178 ExeFilePath &ExeFilePath::setWorkingDir(
const QString &path)
180 d->workingDir = path;