From 9fc8b9fcc039d360fdb85eef1afb0a78ba85d674 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Wed, 4 Oct 2017 18:35:55 -0230 Subject: [PATCH] Fixed crash when specifying an invalid controller type on the commandline. --- src/emucore/Console.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emucore/Console.cxx b/src/emucore/Console.cxx index 4e97c8034..e607b3f63 100644 --- a/src/emucore/Console.cxx +++ b/src/emucore/Console.cxx @@ -799,6 +799,8 @@ unique_ptr Console::getControllerPort(const string& rommd5, { controller = make_unique(port, myEvent, *mySystem); } + else // What else can we do? + controller = make_unique(port, myEvent, *mySystem); return controller; }