diff --git a/src/emucore/Switches.cxx b/src/emucore/Switches.cxx index 5fd064122..69c1d3559 100644 --- a/src/emucore/Switches.cxx +++ b/src/emucore/Switches.cxx @@ -168,6 +168,20 @@ void Switches::setReset(bool setToA) } } +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +void Switches::setSelect(bool setSel) +{ + if(setSel) + { + mySwitches |= 0x02; + } + else + { + mySwitches &= ~0x02; + } +} + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Switches::clear() { mySwitches = 0; diff --git a/src/emucore/Switches.hxx b/src/emucore/Switches.hxx index 625e3514c..1f6317711 100644 --- a/src/emucore/Switches.hxx +++ b/src/emucore/Switches.hxx @@ -115,6 +115,7 @@ class Switches : public Serializable void setRightDifficultyA(bool setToA); void setReset(bool setToA); + void setSelect(bool setSel); void clear(); /**