summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorinterdpth <interdpth@gmail.com>2010-01-22 23:24:43 +0000
committerinterdpth <interdpth@gmail.com>2010-01-22 23:24:43 +0000
commit267fd392d772887e3630baf9009bd0449bc4f4bf (patch)
tree5451e4f6dbd1799959b5f64cf14ae71211e47d18 /Source/Core
parent68a4eacb621c4f31e3fb04afad4b6f8cfda895e7 (diff)
If you're Wiimotes input was a real Wiimote and you decided to play a Gamecube Game, then you'd eventually get the message "Wiimote has been disconnected", and it would harshly mess up your game play. Fixed it so that message only appears during Wii game play. Should we checked if Wiimote was ever connected for that gaming session?
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4925 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/Frame.cpp40
1 files changed, 21 insertions, 19 deletions
diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp
index 4d6e393104..93f999bf0f 100644
--- a/Source/Core/DolphinWX/Src/Frame.cpp
+++ b/Source/Core/DolphinWX/Src/Frame.cpp
@@ -161,25 +161,27 @@ CPanel::CPanel(
return 0;
case WIIMOTE_DISCONNECT:
- if (main_frame->bNoWiimoteMsg)
- main_frame->bNoWiimoteMsg = false;
- else
- {
- // The Wiimote has been disconnect, we offer reconnect here
- wxMessageDialog *dlg = new wxMessageDialog(
- this,
- wxString::Format(wxT("Wiimote %i has been disconnected by system.\n")
- wxT("Maybe this game doesn't support multi-wiimote,\n")
- wxT("or maybe it is due to idle time out or other reason.\n\n")
- wxT("Do you want to reconnect immediately?"), lParam + 1),
- wxT("Reconnect Wiimote Confirm"),
- wxYES_NO | wxSTAY_ON_TOP | wxICON_INFORMATION, //wxICON_QUESTION,
- wxDefaultPosition);
-
- if (dlg->ShowModal() == wxID_YES)
- GetUsbPointer()->AccessWiiMote(lParam | 0x100)->Activate(true);
-
- dlg->Destroy();
+ if( SConfig::GetInstance().m_LocalCoreStartupParameter.bWii ){ //Only Alerts if the game is a wii game.
+ if (main_frame->bNoWiimoteMsg)
+ main_frame->bNoWiimoteMsg = false;
+ else
+ {
+ // The Wiimote has been disconnect, we offer reconnect here
+ wxMessageDialog *dlg = new wxMessageDialog(
+ this,
+ wxString::Format(wxT("Wiimote %i has been disconnected by system.\n")
+ wxT("Maybe this game doesn't support multi-wiimote,\n")
+ wxT("or maybe it is due to idle time out or other reason.\n\n")
+ wxT("Do you want to reconnect immediately?"), lParam + 1),
+ wxT("Reconnect Wiimote Confirm"),
+ wxYES_NO | wxSTAY_ON_TOP | wxICON_INFORMATION, //wxICON_QUESTION,
+ wxDefaultPosition);
+
+ if (dlg->ShowModal() == wxID_YES)
+ GetUsbPointer()->AccessWiiMote(lParam | 0x100)->Activate(true);
+
+ dlg->Destroy();
+ }
}
return 0;
}