mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Add on screen frame counter.
This commit is contained in:
parent
13fc8e7df1
commit
f6c6f03cce
8 changed files with 47 additions and 4 deletions
|
@ -213,6 +213,8 @@ wxMenuBar* CFrame::CreateMenu()
|
|||
movieMenu->Check(IDM_TOGGLE_PAUSEMOVIE, SConfig::GetInstance().m_PauseMovie);
|
||||
movieMenu->AppendCheckItem(IDM_SHOWLAG, _("Show lag counter"));
|
||||
movieMenu->Check(IDM_SHOWLAG, SConfig::GetInstance().m_ShowLag);
|
||||
movieMenu->AppendCheckItem(IDM_SHOWFRAMECOUNT, _("Show frame counter"));
|
||||
movieMenu->Check(IDM_SHOWFRAMECOUNT, SConfig::GetInstance().m_ShowFrameCount);
|
||||
movieMenu->Check(IDM_RECORDREADONLY, true);
|
||||
menubar->Append(movieMenu, _("&Movie"));
|
||||
|
||||
|
@ -717,6 +719,12 @@ void CFrame::OnShowLag(wxCommandEvent& WXUNUSED (event))
|
|||
SConfig::GetInstance().SaveSettings();
|
||||
}
|
||||
|
||||
void CFrame::OnShowFrameCount(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
SConfig::GetInstance().m_ShowFrameCount = !SConfig::GetInstance().m_ShowFrameCount;
|
||||
SConfig::GetInstance().SaveSettings();
|
||||
}
|
||||
|
||||
void CFrame::OnFrameStep(wxCommandEvent& event)
|
||||
{
|
||||
bool wasPaused = (Core::GetState() == Core::CORE_PAUSE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue