Movie: Reset wiimotes at at start of recording/playback,

to prevent desync issues which occur when the a game has been opened beforehand
This commit is contained in:
rabbott99
2015-12-22 23:26:18 -05:00
parent 1b69743ba1
commit 9e54cf80c2
4 changed files with 19 additions and 2 deletions

View File

@ -51,6 +51,12 @@ void Initialize(void* const hwnd, bool wait)
Movie::ChangeWiiPads();
}
void ResetAllWiimotes()
{
for (int i = WIIMOTE_CHAN_0; i < MAX_BBMOTES; ++i)
static_cast<WiimoteEmu::Wiimote*>(s_config.GetController(i))->Reset();
}
void LoadConfig()
{
s_config.LoadConfig(false);