The read-only movie flag now taken into account for save states. Fixes Issue 4463.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7674 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
baby.lueshi
2011-07-11 20:15:05 +00:00
parent 2b9b4a3306
commit ebce13fba7
3 changed files with 98 additions and 60 deletions

View File

@ -715,6 +715,12 @@ void CFrame::OnChangeDisc(wxCommandEvent& WXUNUSED (event))
void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
{
int controllers = 0;
if (Movie::IsReadOnly())
{
PanicAlertT("Cannot record movies in read-only mode.");
return;
}
for (int i = 0; i < 4; i++) {
if (SConfig::GetInstance().m_SIDevice[i] == SI_GC_CONTROLLER)