Ensure fast forward gets turned off when a game crashes or changes
This commit is contained in:
parent
6cf1e93f6c
commit
adbeb02293
3 changed files with 4 additions and 2 deletions
|
@ -108,11 +108,11 @@ void AutomaticRomTest::ProcessNotification(ConsoleNotificationType type, void* p
|
|||
|
||||
int32_t AutomaticRomTest::Run(string filename)
|
||||
{
|
||||
EmulationSettings::SetFlags(EmulationFlags::ForceMaxSpeed);
|
||||
EmulationSettings::SetMasterVolume(0);
|
||||
Console::Pause();
|
||||
if(Console::LoadROM(filename)) {
|
||||
Console::Resume();
|
||||
EmulationSettings::SetFlags(EmulationFlags::ForceMaxSpeed);
|
||||
EmulationSettings::ClearFlags(EmulationFlags::Paused);
|
||||
_signal.Wait();
|
||||
|
||||
|
|
|
@ -200,6 +200,7 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
|
|||
if(EmulationSettings::GetOverclockRate() != 100) {
|
||||
MessageManager::DisplayMessage("ClockRate", std::to_string(EmulationSettings::GetOverclockRate()) + "%");
|
||||
}
|
||||
EmulationSettings::ClearFlags(EmulationFlags::ForceMaxSpeed);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -553,6 +554,7 @@ void Console::Run()
|
|||
VideoDecoder::GetInstance()->StopThread();
|
||||
|
||||
EmulationSettings::ClearFlags(EmulationFlags::Paused);
|
||||
EmulationSettings::ClearFlags(EmulationFlags::ForceMaxSpeed);
|
||||
|
||||
_initialized = false;
|
||||
|
||||
|
|
|
@ -212,7 +212,6 @@ int32_t RecordedRomTest::Run(string filename)
|
|||
return false;
|
||||
}
|
||||
|
||||
EmulationSettings::SetFlags(EmulationFlags::ForceMaxSpeed);
|
||||
EmulationSettings::SetMasterVolume(0);
|
||||
|
||||
Console::Pause();
|
||||
|
@ -237,6 +236,7 @@ int32_t RecordedRomTest::Run(string filename)
|
|||
|
||||
//Start playing movie
|
||||
if(Console::LoadROM(testRom)) {
|
||||
EmulationSettings::SetFlags(EmulationFlags::ForceMaxSpeed);
|
||||
_runningTest = true;
|
||||
MovieManager::Play(testMovie);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue