diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-10-02 00:09:07 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-10-24 11:41:55 +0200 |
| commit | 4b4a9a64865bbeeb55161a977bcadcb5ed58ade3 (patch) | |
| tree | a2e75a88e623e68717e6ba860d480428a9d9ea2f /Source/Core/DolphinQt2/MainWindow.cpp | |
| parent | 8e0869aff6c50a23cd1ca9b2e03ad7c484ee2585 (diff) | |
UI: Implement a command line option to boot NAND title
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index 7ebc6e9546..304327a4b7 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -65,7 +65,7 @@ #include "UICommon/X11Utils.h" #endif -MainWindow::MainWindow() : QMainWindow(nullptr) +MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters) : QMainWindow(nullptr) { setWindowTitle(QString::fromStdString(Common::scm_rev_str)); setWindowIcon(QIcon(Resources::GetMisc(Resources::LOGO_SMALL))); @@ -84,6 +84,9 @@ MainWindow::MainWindow() : QMainWindow(nullptr) InitCoreCallbacks(); NetPlayInit(); + + if (boot_parameters) + StartGame(std::move(boot_parameters)); } MainWindow::~MainWindow() |
