23 #include "gameexeretriever.h" 25 #include "ini/inisection.h" 26 #include "plugins/engineplugin.h" 27 #include "serverapi/gameexefactory.h" 28 #include "serverapi/gamefile.h" 29 #include "serverapi/message.h" 36 QString GameExeRetriever::pathToOfflineExe(
Message &message)
38 GameFile file = GameFiles::preferredOfflineExecutable(factory.gameFiles());
45 QString path = factory.plugin()->data()->pConfig->value(file.
configName()).toString();
46 if (path.trimmed().isEmpty())
Message object used to pass messages throughout the Doomseeker's system.
const QString & configName() const
Setting name where path will be stored in plugin's IniSection.
Returns executable file retrievers from plugins to Doomseeker.
Game file definition allows to browse this file in configuration box.
static Message customError(const QString &content)
Convenience method. Sets type to Type::CUSTOM_ERROR.
bool isValid() const
A valid file has configName().