From 105a112f3c6ba58b1e9ffc5dad99483a7528e33e Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 10 Mar 2019 17:46:36 +0100 Subject: Add "Explore Virtual Folder" (name subject to change) as a default executable. --- src/executableslist.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/executableslist.cpp') diff --git a/src/executableslist.cpp b/src/executableslist.cpp index ae4ebdbf..c7786c20 100644 --- a/src/executableslist.cpp +++ b/src/executableslist.cpp @@ -25,6 +25,8 @@ along with Mod Organizer. If not, see . #include #include #include +#include + #include @@ -53,6 +55,17 @@ void ExecutablesList::init(IPluginGame const *game) info.steamAppID()); } } + ExecutableInfo explorerpp = ExecutableInfo("Explore Virtual Folder", QFileInfo(QCoreApplication::applicationDirPath() + "/explorer++/Explorer++.exe" )) + .withArgument(QString("\"%1\"").arg(QDir::toNativeSeparators(game->dataDirectory().absolutePath()))); + + if (explorerpp.isValid()) { + addExecutableInternal(explorerpp.title(), + explorerpp.binary().absoluteFilePath(), + explorerpp.arguments().join(" "), + explorerpp.workingDirectory().absolutePath(), + explorerpp.steamAppID()); + } + } void ExecutablesList::getExecutables(std::vector::iterator &begin, std::vector::iterator &end) -- cgit v1.3.1