mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Qt: Implement sysmenu booting
This commit is contained in:
parent
3a27d60937
commit
2cf0228ada
5 changed files with 19 additions and 6 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "Core/Boot/Boot.h"
|
||||
#include "Core/BootManager.h"
|
||||
#include "Core/CommonTitles.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/HW/GCKeyboard.h"
|
||||
|
@ -187,6 +188,7 @@ void MainWindow::ConnectMenuBar()
|
|||
|
||||
// Tools
|
||||
connect(m_menu_bar, &MenuBar::PerformOnlineUpdate, this, &MainWindow::PerformOnlineUpdate);
|
||||
connect(m_menu_bar, &MenuBar::BootWiiSystemMenu, this, &MainWindow::BootWiiSystemMenu);
|
||||
|
||||
// View
|
||||
connect(m_menu_bar, &MenuBar::ShowTable, m_game_list, &GameList::SetTableView);
|
||||
|
@ -566,6 +568,12 @@ void MainWindow::PerformOnlineUpdate(const std::string& region)
|
|||
m_menu_bar->UpdateToolsMenu(false);
|
||||
}
|
||||
|
||||
void MainWindow::BootWiiSystemMenu()
|
||||
{
|
||||
StartGame(QString::fromStdString(
|
||||
Common::GetTitleContentPath(Titles::SYSTEM_MENU, Common::FROM_CONFIGURED_ROOT)));
|
||||
}
|
||||
|
||||
bool MainWindow::eventFilter(QObject* object, QEvent* event)
|
||||
{
|
||||
if (event->type() == QEvent::Close && !Stop())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue