Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/emucore/Switches.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/emucore/Switches.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class Switches : public Serializable
void setRightDifficultyA(bool setToA);

void setReset(bool setToA);
void setSelect(bool setSel);
void clear();

/**
Expand Down