all repos — mgba @ 3a888f6a36ac50400ec65c27855fadc31828dd2a

mGBA Game Boy Advance Emulator

DS: Fix non-debuggers build
Vicki Pfau vi@endrift.com
Thu, 23 Feb 2017 17:05:24 -0800
commit

3a888f6a36ac50400ec65c27855fadc31828dd2a

parent

5c3fc0ac0dd73d53cd33e1598d1847e0f8d6418c

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -646,7 +646,8 @@ ${DS_RENDERER_SRC})

list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/cli-debugger.c ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/debugger.c - ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/memory-debugger.c) + ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/memory-debugger.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/ds/extra/cli.c) endif() source_group("Virtual files" FILES ${CORE_VFS_SRC} ${VFS_SRC})
M src/ds/core.csrc/ds/core.c

@@ -402,6 +402,7 @@

static void _DSCoreRawWrite32(struct mCore* core, uint32_t address, int segment, uint32_t value) { } +#ifdef USE_DEBUGGERS static bool _DSCoreSupportsDebuggerType(struct mCore* core, enum mDebuggerType type) { UNUSED(core); switch (type) {

@@ -440,6 +441,7 @@ static void _DSCoreDetachDebugger(struct mCore* core) {

DSDetachDebugger(core->board); core->debugger = NULL; } +#endif static struct mCheatDevice* _DSCoreCheatDevice(struct mCore* core) { return NULL;