mirror of https://github.com/stella-emu/stella.git
Fixed crash when specifying an invalid controller type on the commandline.
This commit is contained in:
parent
29e53093ba
commit
9fc8b9fcc0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue