cartridge RAM window not available for atari carts unless superchip is present

the decision whether to show cartridge menu is partly made on whether
the cartridge has a "RAM bus" available. atari cartridges (unlike other
cartridge type) always have a RAM bus but only some have a superchip.
the test for whether a cartridge has cartridge RAM has been made more
stringent
This commit is contained in:
JetSetIlly 2023-10-03 19:18:35 +01:00
parent f18e4e6f08
commit 54e3abd04f

View file

@ -444,6 +444,9 @@ func (cart *Cartridge) GetStaticBus() mapper.CartStaticBus {
// GetRAMbus returns interface to ram busor nil if catridge contains no RAM.
func (cart *Cartridge) GetRAMbus() mapper.CartRAMbus {
if bus, ok := cart.mapper.(mapper.CartRAMbus); ok {
if bus.GetRAM() == nil {
return nil
}
return bus
}
return nil