Debugger: Fixed issue when switching from NSF file to regular ROM while debugger is opened (no video was shown)

This commit is contained in:
Sour 2018-01-02 12:18:01 -05:00
parent 0c9cbe4da0
commit 7debc4e98c

View file

@ -141,7 +141,7 @@ bool Console::Initialize(VirtualFile &romFile, VirtualFile &patchFile)
if(_hdData && (!_hdData->Tiles.empty() || !_hdData->Backgrounds.empty())) {
_ppu.reset(new HdPpu(_mapper.get(), _controlManager.get(), _hdData->Version));
} else if(NsfMapper::GetInstance()) {
} else if(std::dynamic_pointer_cast<NsfMapper>(_mapper)) {
//Disable most of the PPU for NSFs
_ppu.reset(new NsfPpu(_mapper.get(), _controlManager.get()));
} else {