Qt: Fix opening debugger when system already paused

This commit is contained in:
Connor McLaughlin
2020-12-27 00:15:12 +10:00
parent dc46d52029
commit 3cd3d1c09d
5 changed files with 16 additions and 4 deletions

View File

@ -560,6 +560,12 @@ bool Boot(const SystemBootParameters& params)
return false;
}
if (params.start_paused)
{
DebugAssert(s_state == State::Running);
s_state = State::Paused;
}
return true;
}
@ -699,7 +705,7 @@ bool Boot(const SystemBootParameters& params)
}
// Good to go.
s_state = State::Running;
s_state = params.start_paused ? State::Paused : State::Running;
return true;
}

View File

@ -31,6 +31,7 @@ struct SystemBootParameters
u32 media_playlist_index = 0;
bool load_image_to_ram = false;
bool force_software_renderer = false;
bool start_paused = false;
};
namespace System {