mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-06-02 20:18:20 -04:00
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:
parent
f18e4e6f08
commit
54e3abd04f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue