Fixed crash when specifying an invalid controller type on the commandline.

This commit is contained in:
Stephen Anthony 2017-10-04 18:35:55 -02:30
parent 29e53093ba
commit 9fc8b9fcc0
1 changed files with 2 additions and 0 deletions

View File

@ -799,6 +799,8 @@ unique_ptr<Controller> Console::getControllerPort(const string& rommd5,
{
controller = make_unique<MindLink>(port, myEvent, *mySystem);
}
else // What else can we do?
controller = make_unique<Joystick>(port, myEvent, *mySystem);
return controller;
}