summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2013-09-07 00:06:03 -0400
committerRachel Bryk <RachelBryk@gmail.com>2013-09-07 00:06:03 -0400
commit2bc44f98c303b4f2d60e740c44bd8b6fb08531aa (patch)
treed23a37adba13103ccfa26c24e093e5cee8623d00 /Source/Core
parentd25a8bb6cb57b4ae3d14a5f6320262955ab88514 (diff)
Disable gui controls for gc controllers and memory cards during netplay and movies.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/ConfigMain.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp
index 0f82378f50..7ebd617b8a 100644
--- a/Source/Core/DolphinWX/Src/ConfigMain.cpp
+++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp
@@ -30,6 +30,7 @@
#include "HotkeyDlg.h"
#include "Main.h"
#include "VideoBackendBase.h"
+#include "NetPlayClient.h"
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
@@ -740,6 +741,8 @@ void CConfigMain::CreateGUIControls()
sbGamecubeEXIDevSettings->Add(GCEXIDeviceText[i], wxGBPosition(i, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
sbGamecubeEXIDevSettings->Add(GCEXIDevice[i], wxGBPosition(i, 1), wxGBSpan(1, (i < 2)?1:2), wxALIGN_CENTER_VERTICAL);
if (i < 2) sbGamecubeEXIDevSettings->Add(GCMemcardPath[i], wxGBPosition(i, 2), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
+ if (NetPlay::IsNetPlayRunning())
+ GCEXIDevice[i]->Disable();
}
sbGamecubeDeviceSettings->Add(sbGamecubeEXIDevSettings, 0, wxALL, 5);
@@ -748,6 +751,10 @@ void CConfigMain::CreateGUIControls()
{
sbGamecubeDevSettings->Add(GCSIDeviceText[i], 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 0);
sbGamecubeDevSettings->Add(GCSIDevice[i], 1, wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM, 0);
+ if (NetPlay::IsNetPlayRunning() || Movie::IsRecordingInput() || Movie::IsPlayingInput())
+ {
+ GCSIDevice[i]->Disable();
+ }
}
sbGamecubeDeviceSettings->Add(sbGamecubeDevSettings, 0, wxALL, 5);