mirror of https://github.com/mgba-emu/mgba.git
Qt: Ensure debugger is attached to a starting core when opening scripting (fixes #3471)
This commit is contained in:
parent
e4be21c003
commit
645001e9ce
|
@ -86,6 +86,8 @@ void ScriptingController::setController(std::shared_ptr<CoreController> controll
|
|||
m_controller->thread()->scriptContext = &m_scriptContext;
|
||||
if (m_controller->hasStarted()) {
|
||||
attach();
|
||||
} else {
|
||||
m_controller->attachDebugger(false);
|
||||
}
|
||||
updateVideoScale();
|
||||
connect(m_controller.get(), &CoreController::stopping, this, &ScriptingController::clearController);
|
||||
|
|
Loading…
Reference in New Issue