mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Require emulator start before enabling Break/Run button
This commit is contained in:
parent
e18ee42afc
commit
794e2e47d0
|
@ -245,6 +245,7 @@ DisassemblyDialog::DisassemblyDialog(wxWindow* parent):
|
|||
|
||||
breakRunButton = new wxButton(panel, wxID_ANY, L"Run");
|
||||
Bind(wxEVT_BUTTON, &DisassemblyDialog::onBreakRunClicked, this, breakRunButton->GetId());
|
||||
breakRunButton->Enable(false);
|
||||
topRowSizer->Add(breakRunButton);
|
||||
|
||||
stepIntoButton = new wxButton( panel, wxID_ANY, L"Step Into");
|
||||
|
@ -606,6 +607,8 @@ void DisassemblyDialog::setDebugMode(bool debugMode, bool switchPC)
|
|||
|
||||
if (running)
|
||||
{
|
||||
breakRunButton->Enable(true);
|
||||
|
||||
if (currentCpu == NULL)
|
||||
{
|
||||
wxWindow* currentPage = middleBook->GetCurrentPage();
|
||||
|
|
Loading…
Reference in New Issue