Fixed sound looping when power cycling VS games with option to show config dialog on power on
This commit is contained in:
parent
7f71773dd0
commit
5dc656624a
1 changed files with 3 additions and 3 deletions
|
@ -73,8 +73,6 @@ void Console::SaveBatteries()
|
|||
|
||||
bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
|
||||
{
|
||||
SoundMixer::StopAudio();
|
||||
|
||||
if(!_romFilepath.empty() && _mapper) {
|
||||
//Ensure we save any battery file before loading a new game
|
||||
SaveBatteries();
|
||||
|
@ -82,7 +80,7 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
|
|||
//Save current game state before loading another one
|
||||
SaveStateManager::SaveRecentGame(_mapper->GetRomName(), _romFilepath, _patchFilename);
|
||||
}
|
||||
|
||||
|
||||
if(romFile.IsValid()) {
|
||||
VideoDecoder::GetInstance()->StopThread();
|
||||
|
||||
|
@ -100,6 +98,8 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
|
|||
BatteryManager::Initialize(FolderUtilities::GetFilename(romFile.GetFileName(), false));
|
||||
shared_ptr<BaseMapper> mapper = MapperFactory::InitializeFromFile(romFile.GetFileName(), fileData);
|
||||
if(mapper) {
|
||||
SoundMixer::StopAudio();
|
||||
|
||||
if(_mapper) {
|
||||
//Send notification only if a game was already running and we successfully loaded the new one
|
||||
MessageManager::SendNotification(ConsoleNotificationType::GameStopped, (void*)1);
|
||||
|
|
Loading…
Add table
Reference in a new issue