[NetPlay] Allow recording movies during netplay.

Fixes issue 6207.
This commit is contained in:
Rachel Bryk
2013-09-03 15:50:41 -04:00
parent 7e1959a200
commit 8ae10b3e12
7 changed files with 71 additions and 6 deletions

View File

@ -354,6 +354,9 @@ NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game
bottom_szr->Add(m_memcard_write, 0, wxCENTER);
}
m_record_chkbox = new wxCheckBox(panel, wxID_ANY, _("Record input"));
bottom_szr->Add(m_record_chkbox, 0, wxCENTER);
bottom_szr->AddStretchSpacer(1);
bottom_szr->Add(quit_btn);
@ -565,6 +568,11 @@ void NetPlayDiag::OnConfigPads(wxCommandEvent&)
netplay_server->SetPadMapping(mapping);
}
bool NetPlayDiag::IsRecording()
{
return m_record_chkbox->GetValue();
}
ChangeGameDiag::ChangeGameDiag(wxWindow* const parent, const CGameListCtrl* const game_list, wxString& game_name)
: wxDialog(parent, wxID_ANY, _("Change Game"), wxDefaultPosition, wxDefaultSize)
, m_game_name(game_name)

View File

@ -81,6 +81,8 @@ public:
static NetPlayDiag *&GetInstance() { return npd; };
bool IsRecording();
private:
DECLARE_EVENT_TABLE()
@ -97,6 +99,7 @@ private:
wxTextCtrl* m_chat_text;
wxTextCtrl* m_chat_msg_text;
wxCheckBox* m_memcard_write;
wxCheckBox* m_record_chkbox;
std::string m_selected_game;
wxButton* m_game_btn;