mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix non-debugger build (fixes #3049)
This commit is contained in:
parent
6ecc182d7c
commit
9c9f31d0d1
|
@ -125,7 +125,6 @@ set(SOURCE_FILES
|
|||
LogView.cpp
|
||||
LogWidget.cpp
|
||||
MapView.cpp
|
||||
MemoryAccessLogView.cpp
|
||||
MemoryDump.cpp
|
||||
MemoryModel.cpp
|
||||
MemorySearch.cpp
|
||||
|
@ -248,7 +247,8 @@ if(USE_DEBUGGERS)
|
|||
list(APPEND SOURCE_FILES
|
||||
DebuggerController.cpp
|
||||
DebuggerConsole.cpp
|
||||
DebuggerConsoleController.cpp)
|
||||
DebuggerConsoleController.cpp
|
||||
MemoryAccessLogView.cpp)
|
||||
endif()
|
||||
|
||||
if(USE_GDB_STUB)
|
||||
|
|
|
@ -1707,7 +1707,9 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
addGameAction(tr("Search memory..."), "memorySearch", openControllerTView<MemorySearch>(), "stateViews");
|
||||
addGameAction(tr("View &I/O registers..."), "ioViewer", openControllerTView<IOViewer>(), "stateViews");
|
||||
|
||||
#ifdef USE_DEBUGGERS
|
||||
addGameAction(tr("Log memory &accesses..."), "memoryAccessView", openControllerTView<MemoryAccessLogView>(), "tools");
|
||||
#endif
|
||||
|
||||
#if defined(USE_FFMPEG) && defined(M_CORE_GBA)
|
||||
m_actions.addSeparator("tools");
|
||||
|
|
|
@ -301,7 +301,9 @@ void ScriptingController::updateGamepad() {
|
|||
void ScriptingController::attach() {
|
||||
CoreController::Interrupter interrupter(m_controller);
|
||||
mScriptContextAttachCore(&m_scriptContext, m_controller->thread()->core);
|
||||
#ifdef USE_DEBUGGERS
|
||||
m_controller->attachDebugger(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ScriptingController::attachGamepad() {
|
||||
|
|
Loading…
Reference in New Issue