From 4f313f3757e08485fe5cc6ff725a3b419fda330a Mon Sep 17 00:00:00 2001 From: Kingcom Date: Sun, 28 Jul 2013 23:01:43 +0200 Subject: [PATCH] Only assemble when the core is paused --- Windows/Debugger/CtrlDisAsmView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Windows/Debugger/CtrlDisAsmView.cpp b/Windows/Debugger/CtrlDisAsmView.cpp index 4a87d5bf06..b4b46c5dba 100644 --- a/Windows/Debugger/CtrlDisAsmView.cpp +++ b/Windows/Debugger/CtrlDisAsmView.cpp @@ -290,6 +290,12 @@ void CtrlDisAsmView::assembleOpcode(u32 address, std::string defaultText) char op[256]; u32 encoded; + if (Core_IsStepping() == false) + { + MessageBox(wnd,"Cannot change code while the core is running!","Error",MB_OK); + return; + } + bool result = InputBox_GetString(MainWindow::GetHInstance(),wnd,"Assemble opcode",(char*)defaultText.c_str(),op); if (result == false) return;