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)
|
bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
|
||||||
{
|
{
|
||||||
SoundMixer::StopAudio();
|
|
||||||
|
|
||||||
if(!_romFilepath.empty() && _mapper) {
|
if(!_romFilepath.empty() && _mapper) {
|
||||||
//Ensure we save any battery file before loading a new game
|
//Ensure we save any battery file before loading a new game
|
||||||
SaveBatteries();
|
SaveBatteries();
|
||||||
|
@ -100,6 +98,8 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
|
||||||
BatteryManager::Initialize(FolderUtilities::GetFilename(romFile.GetFileName(), false));
|
BatteryManager::Initialize(FolderUtilities::GetFilename(romFile.GetFileName(), false));
|
||||||
shared_ptr<BaseMapper> mapper = MapperFactory::InitializeFromFile(romFile.GetFileName(), fileData);
|
shared_ptr<BaseMapper> mapper = MapperFactory::InitializeFromFile(romFile.GetFileName(), fileData);
|
||||||
if(mapper) {
|
if(mapper) {
|
||||||
|
SoundMixer::StopAudio();
|
||||||
|
|
||||||
if(_mapper) {
|
if(_mapper) {
|
||||||
//Send notification only if a game was already running and we successfully loaded the new one
|
//Send notification only if a game was already running and we successfully loaded the new one
|
||||||
MessageManager::SendNotification(ConsoleNotificationType::GameStopped, (void*)1);
|
MessageManager::SendNotification(ConsoleNotificationType::GameStopped, (void*)1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue