Minor bugfixes : disable Refresh list and Load wii menu when game is running and fix silly init of njoy's rumble

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2973 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s
2009-04-15 20:19:25 +00:00
parent 66ca49d3b8
commit c857f71e80
9 changed files with 54 additions and 33 deletions

View File

@ -82,16 +82,8 @@ void Pad_Use_Rumble(u8 _numPAD)//, SPADStatus* _pPADStatus)
if (PadMapping[_numPAD].rumble) {
if (!g_Rumble) {
HWND rumble_hWnd = GetParent(m_hWnd);
HWND TopLevel = GetParent(rumble_hWnd);
// Support both rendering to main window and not.
if (GetForegroundWindow() == TopLevel)
rumble_hWnd = TopLevel;
if (GetForegroundWindow() == m_hWnd)
rumble_hWnd = m_hWnd;
if (FAILED(InitRumble(rumble_hWnd)))
// GetForegroundWindow() always sends the good HWND
if (FAILED(InitRumble(GetForegroundWindow())))
PanicAlert("Could not initialize Rumble!");
} else {