Stop Movie/Netplay before triggering STM shutdown

This fixes a bug which caused Movie (input recording or playback) or
netplay not to be stopped. DolphinWX previously triggered a STM power
event, and then the STM directly stopped the emulation; the code
which stops Movie/Netplay was completely skipped.

This is fixed by moving it /before/ sending the shutdown event.
This commit is contained in:
Léo Lam
2016-12-23 22:26:24 +01:00
parent 01c2c50f6a
commit ec729e2ee3
2 changed files with 21 additions and 14 deletions

View File

@ -90,6 +90,7 @@ public:
void DoPause();
void DoStop();
bool TriggerSTMPowerEvent();
void OnStopped();
void DoRecordingSave();
void UpdateGUI();