diff options
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 6b2fab39cb..99fc9bc095 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -169,6 +169,9 @@ void CFrame::BindMenuBarEvents() Bind(wxEVT_MENU, &CFrame::OnMemcard, this, IDM_MEMCARD); Bind(wxEVT_MENU, &CFrame::OnImportSave, this, IDM_IMPORT_SAVE); Bind(wxEVT_MENU, &CFrame::OnExportAllSaves, this, IDM_EXPORT_ALL_SAVE); + Bind(wxEVT_MENU, &CFrame::OnLoadGameCubeBIOSJAP, this, IDM_LOAD_GC_BIOS_JAP); + Bind(wxEVT_MENU, &CFrame::OnLoadGameCubeBIOSUSA, this, IDM_LOAD_GC_BIOS_USA); + Bind(wxEVT_MENU, &CFrame::OnLoadGameCubeBIOSEUR, this, IDM_LOAD_GC_BIOS_EUR); Bind(wxEVT_MENU, &CFrame::OnShowCheatsWindow, this, IDM_CHEATS); Bind(wxEVT_MENU, &CFrame::OnNetPlay, this, IDM_NETPLAY); Bind(wxEVT_MENU, &CFrame::OnInstallWAD, this, IDM_MENU_INSTALL_WAD); @@ -633,7 +636,7 @@ void CFrame::ToggleDisplayMode(bool bFullscreen) } // Prepare the GUI to start the game. -void CFrame::StartGame(const std::string& filename) +void CFrame::StartGame(const std::string& filename, SConfig::EBootBS2 type) { if (m_is_game_loading) return; @@ -711,7 +714,7 @@ void CFrame::StartGame(const std::string& filename) SetDebuggerStartupParameters(); - if (!BootManager::BootCore(filename)) + if (!BootManager::BootCore(filename, type)) { DoFullscreen(false); @@ -1173,6 +1176,21 @@ void CFrame::OnMemcard(wxCommandEvent& WXUNUSED(event)) HotkeyManagerEmu::Enable(true); } +void CFrame::OnLoadGameCubeBIOSJAP(wxCommandEvent&) +{ + StartGame("", SConfig::BOOT_BS2_JAP); +} + +void CFrame::OnLoadGameCubeBIOSUSA(wxCommandEvent&) +{ + StartGame("", SConfig::BOOT_BS2_USA); +} + +void CFrame::OnLoadGameCubeBIOSEUR(wxCommandEvent&) +{ + StartGame("", SConfig::BOOT_BS2_EUR); +} + void CFrame::OnExportAllSaves(wxCommandEvent& WXUNUSED(event)) { CWiiSaveCrypted::ExportAllSaves(); |
