mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Reset Wiimotes on force stop and when starting MIOS
This commit is contained in:
@ -290,6 +290,7 @@ void Stop() // - Hammertime!
|
|||||||
g_video_backend->Video_ExitLoop();
|
g_video_backend->Video_ExitLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Wiimote::ResetAllWiimotes();
|
||||||
ResetRumble();
|
ResetRumble();
|
||||||
|
|
||||||
#ifdef USE_MEMORYWATCHER
|
#ifdef USE_MEMORYWATCHER
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "Core/HW/DVD/DVDInterface.h"
|
#include "Core/HW/DVD/DVDInterface.h"
|
||||||
#include "Core/HW/Memmap.h"
|
#include "Core/HW/Memmap.h"
|
||||||
#include "Core/HW/SystemTimers.h"
|
#include "Core/HW/SystemTimers.h"
|
||||||
|
#include "Core/HW/Wiimote.h"
|
||||||
#include "Core/Host.h"
|
#include "Core/Host.h"
|
||||||
#include "Core/PowerPC/PPCSymbolDB.h"
|
#include "Core/PowerPC/PPCSymbolDB.h"
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
@ -35,6 +36,7 @@ static void ReinitHardware()
|
|||||||
// MIOS appears to only reset the DI and the PPC.
|
// MIOS appears to only reset the DI and the PPC.
|
||||||
DVDInterface::Reset();
|
DVDInterface::Reset();
|
||||||
PowerPC::Reset();
|
PowerPC::Reset();
|
||||||
|
Wiimote::ResetAllWiimotes();
|
||||||
// Note: this is specific to Dolphin and is required because we initialised it in Wii mode.
|
// Note: this is specific to Dolphin and is required because we initialised it in Wii mode.
|
||||||
DSP::Reinit(SConfig::GetInstance().bDSPHLE);
|
DSP::Reinit(SConfig::GetInstance().bDSPHLE);
|
||||||
DSP::GetDSPEmulator()->Initialize(SConfig::GetInstance().bWii, SConfig::GetInstance().bDSPThread);
|
DSP::GetDSPEmulator()->Initialize(SConfig::GetInstance().bWii, SConfig::GetInstance().bDSPThread);
|
||||||
|
Reference in New Issue
Block a user