Fixed FDS/VS System games no longer loading properly

This commit is contained in:
Sour 2019-06-23 17:15:05 -04:00
parent f544688b64
commit 279c395271

View file

@ -310,6 +310,10 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
_cpu.reset(new CPU(shared_from_this()));
_apu.reset(new APU(shared_from_this()));
_mapper->SetConsole(shared_from_this());
_mapper->Initialize(romData);
GetNotificationManager()->RegisterNotificationListener(_mapper);
if(_slave) {
_slave->Release(false);
_slave.reset();
@ -367,10 +371,6 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
_ppu.reset(new PPU(shared_from_this()));
}
_mapper->SetConsole(shared_from_this());
_mapper->Initialize(romData);
GetNotificationManager()->RegisterNotificationListener(_mapper);
_memoryManager->SetMapper(_mapper);
_memoryManager->RegisterIODevice(_ppu.get());
_memoryManager->RegisterIODevice(_apu.get());