summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLéo Lam <leolino.lam@gmail.com>2018-03-16 20:25:13 +0100
committerGitHub <noreply@github.com>2018-03-16 20:25:13 +0100
commit917f0e2182dd9cd82c47dfdf32e2eee4bf28cb37 (patch)
tree2f59e0911f9b446cd61ad16cc4cd8ee0fd233190
parentbdaa7be299a63b654c642cf84ac004ce067c9841 (diff)
parent0911b44f60cf5a6aeb472655c881af7b9b0c5c09 (diff)
Merge pull request #6441 from spycrab/qt_exec
Qt/Main: Add option to launch file without -e
-rw-r--r--Source/Core/DolphinQt2/Main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/Main.cpp b/Source/Core/DolphinQt2/Main.cpp
index c04dcc454a..e3cc6f00ee 100644
--- a/Source/Core/DolphinQt2/Main.cpp
+++ b/Source/Core/DolphinQt2/Main.cpp
@@ -104,6 +104,10 @@ int main(int argc, char* argv[])
QMessageBox::critical(nullptr, QObject::tr("Error"), QObject::tr("Invalid title ID."));
}
}
+ else if (!args.empty())
+ {
+ boot = BootParameters::GenerateFromFile(args.front());
+ }
int retval = 0;