diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-03-10 17:46:36 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-03-10 17:46:36 +0100 |
| commit | 105a112f3c6ba58b1e9ffc5dad99483a7528e33e (patch) | |
| tree | 10de35126389ff23f873c4c6e0807c5ae657d0c5 /src/executableslist.cpp | |
| parent | df142f83107a41a4d3e03fc512869de96ab634f9 (diff) | |
Add "Explore Virtual Folder" (name subject to change) as a default executable.
Diffstat (limited to 'src/executableslist.cpp')
| -rw-r--r-- | src/executableslist.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. #include <QFileInfo>
#include <QDir>
#include <QDebug>
+#include <QCoreApplication>
+
#include <algorithm>
@@ -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<Executable>::iterator &begin, std::vector<Executable>::iterator &end)
|
