summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/src/Frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinWX/src/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/src/Frame.cpp32
1 files changed, 27 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/src/Frame.cpp b/Source/Core/DolphinWX/src/Frame.cpp
index dbfaf1065b..7359294a12 100644
--- a/Source/Core/DolphinWX/src/Frame.cpp
+++ b/Source/Core/DolphinWX/src/Frame.cpp
@@ -89,6 +89,7 @@ EVT_MENU(IDM_CONFIG_DSP_PLUGIN, CFrame::OnPluginDSP)
EVT_MENU(IDM_CONFIG_PAD_PLUGIN, CFrame::OnPluginPAD)
EVT_MENU(IDM_BROWSE, CFrame::OnBrowse)
EVT_MENU(IDM_TOGGLE_FULLSCREEN, CFrame::OnToggleFullscreen)
+EVT_MENU(IDM_TOGGLE_DUALCORE, CFrame::OnToggleDualCore)
EVT_HOST_COMMAND(wxID_ANY, CFrame::OnHostMessage)
END_EVENT_TABLE()
@@ -106,6 +107,7 @@ CFrame::CFrame(wxFrame* parent,
, m_pMenuBar(NULL)
, m_Panel(NULL)
, m_pBootProcessDialog(NULL)
+ , m_pStatusBar(NULL)
{
InitBitmaps();
@@ -115,7 +117,7 @@ CFrame::CFrame(wxFrame* parent,
SetIcon(IconTemp);
// Give it a status line
- CreateStatusBar();
+ m_pStatusBar = CreateStatusBar();
CreateMenu();
// this panel is the parent for rendering and it holds the gamelistctrl
@@ -202,13 +204,19 @@ CFrame::CreateMenu()
m_pMenuItemStop->SetDisabledBitmap(m_BitmapsMenu[Toolbar_Stop_Dis]);
pEmulationMenu->Append(m_pMenuItemStop);
}
- pEmulationMenu->AppendSeparator();
- // full screen
+ pEmulationMenu->AppendSeparator();
{
+ // full screen
wxMenuItem* pItem = new wxMenuItem(pEmulationMenu, IDM_TOGGLE_FULLSCREEN, _T("&Fullscreen"));
pItem->SetBitmap(m_BitmapsMenu[Toolbar_FullScreen]);
pEmulationMenu->Append(pItem);
}
+ {
+ // dual core
+ wxMenuItem* pItem = new wxMenuItem(pEmulationMenu, IDM_TOGGLE_DUALCORE, _T("&Dual Core (instable!)"), wxEmptyString, wxITEM_CHECK);
+ pEmulationMenu->Append(pItem);
+ pItem->Check(SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore);
+ }
m_pMenuBar->Append(pEmulationMenu, _T("&Emulation"));
}
@@ -510,7 +518,6 @@ CFrame::OnHostMessage(wxCommandEvent& event)
m_pBootProcessDialog = new wxBusyInfo("Booting...", this);
}
-
break;
case IDM_BOOTING_ENDED:
@@ -521,8 +528,15 @@ CFrame::OnHostMessage(wxCommandEvent& event)
delete m_pBootProcessDialog;
m_pBootProcessDialog = NULL;
}
-
break;
+
+ case IDM_UPDATESTATUSBAR:
+
+ if (m_pStatusBar != NULL)
+ {
+ m_pStatusBar->SetStatusText(event.GetString());
+ }
+ break;
}
}
@@ -535,6 +549,14 @@ CFrame::OnToggleFullscreen(wxCommandEvent& WXUNUSED (event))
}
+void
+CFrame::OnToggleDualCore(wxCommandEvent& WXUNUSED (event))
+{
+ SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore = !SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore;
+ SConfig::GetInstance().SaveSettings();
+}
+
+
void
CFrame::OnKeyDown(wxKeyEvent& event)
{