Skip to content
Permalink
Browse files

Reset Wiimotes on force stop and when starting MIOS

  • Loading branch information
Pokechu22 committed Nov 12, 2019
1 parent a236095 commit 4d4a095c76501799767f70120fe86238f3fe8fb4
Showing with 3 additions and 0 deletions.
  1. +1 −0 Source/Core/Core/Core.cpp
  2. +2 −0 Source/Core/Core/IOS/MIOS.cpp
@@ -290,6 +290,7 @@ void Stop() // - Hammertime!
g_video_backend->Video_ExitLoop();
}

Wiimote::ResetAllWiimotes();
ResetRumble();

#ifdef USE_MEMORYWATCHER
@@ -20,6 +20,7 @@
#include "Core/HW/DVD/DVDInterface.h"
#include "Core/HW/Memmap.h"
#include "Core/HW/SystemTimers.h"
#include "Core/HW/Wiimote.h"
#include "Core/Host.h"
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
@@ -35,6 +36,7 @@ static void ReinitHardware()
// MIOS appears to only reset the DI and the PPC.
DVDInterface::Reset();
PowerPC::Reset();
Wiimote::ResetAllWiimotes();
// Note: this is specific to Dolphin and is required because we initialised it in Wii mode.
DSP::Reinit(SConfig::GetInstance().bDSPHLE);
DSP::GetDSPEmulator()->Initialize(SConfig::GetInstance().bWii, SConfig::GetInstance().bDSPThread);

0 comments on commit 4d4a095

Please sign in to comment.
You can’t perform that action at this time.