From e5acfdf9838602dcf9c53ea435dec3dbc6383e4b Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 17 Aug 2020 17:44:34 +0200 Subject: [PATCH] enhanced CartCDF, now ignores random startup banks (partially addresses #690) --- src/emucore/Cart.hxx | 2 +- src/emucore/CartCDF.hxx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 */