diff --git a/src/emucore/Cart.hxx b/src/emucore/Cart.hxx index 5c3b65af2..94ed77874 100644 --- a/src/emucore/Cart.hxx +++ b/src/emucore/Cart.hxx @@ -354,7 +354,7 @@ class Cartridge : public Device @return Whether the startup bank(s) should be randomized */ - bool randomStartBank() const; + virtual bool randomStartBank() const; protected: // Settings class for the application diff --git a/src/emucore/CartCDF.hxx b/src/emucore/CartCDF.hxx index d2110a112..15d521b5e 100644 --- a/src/emucore/CartCDF.hxx +++ b/src/emucore/CartCDF.hxx @@ -183,6 +183,13 @@ class CartridgeCDF : public Cartridge bool poke(uInt16 address, uInt8 value) override; private: + /** + Checks if startup bank randomization is enabled. + + @return Whether the startup bank(s) should be randomized + */ + bool randomStartBank() const override { return false; }; + /** Sets the initial state of the DPC pointers and RAM */