diff --git a/Source/Core/DolphinWX/ConfigMain.cpp b/Source/Core/DolphinWX/ConfigMain.cpp index 7184e73414..66e0501a4a 100644 --- a/Source/Core/DolphinWX/ConfigMain.cpp +++ b/Source/Core/DolphinWX/ConfigMain.cpp @@ -145,7 +145,6 @@ EVT_CHECKBOX(ID_NTSCJ, CConfigMain::CoreSettingsChanged) EVT_RADIOBOX(ID_DSPENGINE, CConfigMain::AudioSettingsChanged) EVT_CHECKBOX(ID_DSPTHREAD, CConfigMain::AudioSettingsChanged) EVT_CHECKBOX(ID_ENABLE_THROTTLE, CConfigMain::AudioSettingsChanged) -EVT_CHECKBOX(ID_DUMP_AUDIO, CConfigMain::AudioSettingsChanged) EVT_CHECKBOX(ID_DPL2DECODER, CConfigMain::AudioSettingsChanged) EVT_CHOICE(ID_BACKEND, CConfigMain::AudioSettingsChanged) EVT_SLIDER(ID_VOLUME, CConfigMain::AudioSettingsChanged) @@ -374,7 +373,6 @@ void CConfigMain::InitializeGUIValues() VolumeSlider->SetValue(SConfig::GetInstance().m_Volume); VolumeText->SetLabel(wxString::Format("%d %%", SConfig::GetInstance().m_Volume)); DSPThread->SetValue(startup_params.bDSPThread); - DumpAudio->SetValue(SConfig::GetInstance().m_DumpAudio ? true : false); DPL2Decoder->Enable(std::string(SConfig::GetInstance().sBackend) == BACKEND_OPENAL); DPL2Decoder->SetValue(startup_params.bDPL2Decoder); Latency->Enable(std::string(SConfig::GetInstance().sBackend) == BACKEND_OPENAL); @@ -657,7 +655,6 @@ void CConfigMain::CreateGUIControls() // Audio page DSPEngine = new wxRadioBox(AudioPage, ID_DSPENGINE, _("DSP Emulator Engine"), wxDefaultPosition, wxDefaultSize, arrayStringFor_DSPEngine, 0, wxRA_SPECIFY_ROWS); DSPThread = new wxCheckBox(AudioPage, ID_DSPTHREAD, _("DSPLLE on Separate Thread")); - DumpAudio = new wxCheckBox(AudioPage, ID_DUMP_AUDIO, _("Dump Audio")); DPL2Decoder = new wxCheckBox(AudioPage, ID_DPL2DECODER, _("Dolby Pro Logic II decoder")); VolumeSlider = new wxSlider(AudioPage, ID_VOLUME, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_VERTICAL|wxSL_INVERSE); VolumeText = new wxStaticText(AudioPage, wxID_ANY, ""); @@ -677,7 +674,6 @@ void CConfigMain::CreateGUIControls() wxStaticBoxSizer *sbAudioSettings = new wxStaticBoxSizer(wxVERTICAL, AudioPage, _("Sound Settings")); sbAudioSettings->Add(DSPEngine, 0, wxALL | wxEXPAND, 5); sbAudioSettings->Add(DSPThread, 0, wxALL, 5); - sbAudioSettings->Add(DumpAudio, 0, wxALL, 5); sbAudioSettings->Add(DPL2Decoder, 0, wxALL, 5); wxStaticBoxSizer *sbVolume = new wxStaticBoxSizer(wxVERTICAL, AudioPage, _("Volume")); @@ -983,7 +979,6 @@ void CConfigMain::AudioSettingsChanged(wxCommandEvent& event) break; default: - SConfig::GetInstance().m_DumpAudio = DumpAudio->GetValue(); break; } } diff --git a/Source/Core/DolphinWX/ConfigMain.h b/Source/Core/DolphinWX/ConfigMain.h index 5ae0aeb352..029a2a889a 100644 --- a/Source/Core/DolphinWX/ConfigMain.h +++ b/Source/Core/DolphinWX/ConfigMain.h @@ -88,7 +88,6 @@ private: ID_DSPENGINE, ID_ENABLE_HLE_AUDIO, ID_ENABLE_THROTTLE, - ID_DUMP_AUDIO, ID_DPL2DECODER, ID_LATENCY, ID_BACKEND, @@ -163,7 +162,6 @@ private: wxRadioBox* DSPEngine; wxSlider* VolumeSlider; wxStaticText* VolumeText; - wxCheckBox* DumpAudio; wxCheckBox* DPL2Decoder; wxArrayString wxArrayBackends; wxChoice* BackendSelection; diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index bd98c974ca..ff2e5f1e6b 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -233,6 +233,8 @@ EVT_MENU(IDM_SHOWLAG, CFrame::OnShowLag) EVT_MENU(IDM_SHOWFRAMECOUNT, CFrame::OnShowFrameCount) EVT_MENU(IDM_FRAMESTEP, CFrame::OnFrameStep) EVT_MENU(IDM_SCREENSHOT, CFrame::OnScreenshot) +EVT_MENU(IDM_TOGGLE_DUMPFRAMES, CFrame::OnToggleDumpFrames) +EVT_MENU(IDM_TOGGLE_DUMPAUDIO, CFrame::OnToggleDumpAudio) EVT_MENU(wxID_PREFERENCES, CFrame::OnConfigMain) EVT_MENU(IDM_CONFIG_GFX_BACKEND, CFrame::OnConfigGFX) EVT_MENU(IDM_CONFIG_DSP_EMULATOR, CFrame::OnConfigDSP) diff --git a/Source/Core/DolphinWX/Frame.h b/Source/Core/DolphinWX/Frame.h index 7fda38f043..297b8dc558 100644 --- a/Source/Core/DolphinWX/Frame.h +++ b/Source/Core/DolphinWX/Frame.h @@ -269,6 +269,8 @@ private: void OnRecordReadOnly(wxCommandEvent& event); void OnTASInput(wxCommandEvent& event); void OnTogglePauseMovie(wxCommandEvent& event); + void OnToggleDumpFrames(wxCommandEvent& event); + void OnToggleDumpAudio(wxCommandEvent& event); void OnShowLag(wxCommandEvent& event); void OnShowFrameCount(wxCommandEvent& event); void OnChangeDisc(wxCommandEvent& event); diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 659437530a..08a2c356fe 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -216,6 +216,11 @@ wxMenuBar* CFrame::CreateMenu() movieMenu->AppendCheckItem(IDM_SHOWFRAMECOUNT, _("Show frame counter")); movieMenu->Check(IDM_SHOWFRAMECOUNT, SConfig::GetInstance().m_ShowFrameCount); movieMenu->Check(IDM_RECORDREADONLY, true); + movieMenu->AppendSeparator(); + movieMenu->AppendCheckItem(IDM_TOGGLE_DUMPFRAMES, _("Dump frames")); + movieMenu->Check(IDM_TOGGLE_DUMPFRAMES, g_ActiveConfig.bDumpFrames); + movieMenu->AppendCheckItem(IDM_TOGGLE_DUMPAUDIO, _("Dump audio")); + movieMenu->Check(IDM_TOGGLE_DUMPAUDIO, SConfig::GetInstance().m_DumpAudio); menubar->Append(movieMenu, _("&Movie")); // Options menu @@ -713,6 +718,16 @@ void CFrame::OnTogglePauseMovie(wxCommandEvent& WXUNUSED (event)) SConfig::GetInstance().SaveSettings(); } +void CFrame::OnToggleDumpFrames(wxCommandEvent& WXUNUSED(event)) +{ + g_ActiveConfig.bDumpFrames = !g_ActiveConfig.bDumpFrames; +} + +void CFrame::OnToggleDumpAudio(wxCommandEvent& WXUNUSED(event)) +{ + SConfig::GetInstance().m_DumpAudio = !SConfig::GetInstance().m_DumpAudio; +} + void CFrame::OnShowLag(wxCommandEvent& WXUNUSED (event)) { SConfig::GetInstance().m_ShowLag = !SConfig::GetInstance().m_ShowLag; diff --git a/Source/Core/DolphinWX/Globals.h b/Source/Core/DolphinWX/Globals.h index 3e331ddec1..8de543e69a 100644 --- a/Source/Core/DolphinWX/Globals.h +++ b/Source/Core/DolphinWX/Globals.h @@ -94,6 +94,8 @@ enum IDM_SHOWFRAMECOUNT, IDM_FRAMESTEP, IDM_SCREENSHOT, + IDM_TOGGLE_DUMPFRAMES, + IDM_TOGGLE_DUMPAUDIO, IDM_BROWSE, IDM_DRIVES, IDM_DRIVE1, diff --git a/Source/Core/DolphinWX/VideoConfigDiag.cpp b/Source/Core/DolphinWX/VideoConfigDiag.cpp index b9cf58baef..df8239ef5a 100644 --- a/Source/Core/DolphinWX/VideoConfigDiag.cpp +++ b/Source/Core/DolphinWX/VideoConfigDiag.cpp @@ -142,7 +142,6 @@ static wxString xfb_real_desc = wxTRANSLATE("Emulate XFBs accurately.\nSlows dow static wxString dump_textures_desc = wxTRANSLATE("Dump decoded game textures to User/Dump/Textures//\n\nIf unsure, leave this unchecked."); static wxString load_hires_textures_desc = wxTRANSLATE("Load custom textures from User/Load/Textures//\n\nIf unsure, leave this unchecked."); static wxString dump_efb_desc = wxTRANSLATE("Dump the contents of EFB copies to User/Dump/Textures/\n\nIf unsure, leave this unchecked."); -static wxString dump_frames_desc = wxTRANSLATE("Dump all rendered frames to an AVI file in User/Dump/Frames/\n\nIf unsure, leave this unchecked."); #if !defined WIN32 && defined HAVE_LIBAV static wxString use_ffv1_desc = wxTRANSLATE("Encode frame dumps using the FFV1 codec.\n\nIf unsure, leave this unchecked."); #endif @@ -557,7 +556,6 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con szr_utility->Add(CreateCheckBox(page_advanced, _("Dump Textures"), wxGetTranslation(dump_textures_desc), vconfig.bDumpTextures)); szr_utility->Add(CreateCheckBox(page_advanced, _("Load Custom Textures"), wxGetTranslation(load_hires_textures_desc), vconfig.bHiresTextures)); szr_utility->Add(CreateCheckBox(page_advanced, _("Dump EFB Target"), wxGetTranslation(dump_efb_desc), vconfig.bDumpEFBTarget)); - szr_utility->Add(CreateCheckBox(page_advanced, _("Dump Frames"), wxGetTranslation(dump_frames_desc), vconfig.bDumpFrames)); szr_utility->Add(CreateCheckBox(page_advanced, _("Free Look"), wxGetTranslation(free_look_desc), vconfig.bFreeLook)); #if !defined WIN32 && defined HAVE_LIBAV szr_utility->Add(CreateCheckBox(page_advanced, _("Frame Dumps use FFV1"), wxGetTranslation(use_ffv1_desc), vconfig.bUseFFV1));