From 850f2d54a3967514ae926497e8952d2f68abdaa6 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 21 Jan 2020 12:20:48 -0330 Subject: [PATCH] Make debugging bankswitch selection easier. --- src/emucore/Bankswitch.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emucore/Bankswitch.hxx b/src/emucore/Bankswitch.hxx index f7f2160e4..c57f81609 100644 --- a/src/emucore/Bankswitch.hxx +++ b/src/emucore/Bankswitch.hxx @@ -89,6 +89,11 @@ class Bankswitch static bool isValidRomName(const FilesystemNode& name); static bool isValidRomName(const string& name); + // Output operator + friend ostream& operator<<(ostream& os, const Bankswitch::Type& t) { + return os << typeToName(t); + } + private: struct TypeComparator { bool operator() (const string& a, const string& b) const {