mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
Debugger: Require emulator start before enabling Break/Run button
This commit is contained in:
1 parent
e18ee42afc
commit
794e2e47d0
1 file changed
+3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user