Exclude dis.cpp from non-debug builds

This commit is contained in:
twinaphex 2015-07-29 18:32:39 +02:00
parent 87d9ebf5d4
commit 23c83accbd
2 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,6 @@ else
$(CORE_EMU_DIR)/sio.cpp \
$(CORE_EMU_DIR)/cpu.cpp \
$(CORE_EMU_DIR)/gte.cpp \
$(CORE_EMU_DIR)/dis.cpp \
$(CORE_EMU_DIR)/cdc.cpp \
$(CORE_EMU_DIR)/spu.cpp \
$(CORE_EMU_DIR)/gpu.cpp \
@ -34,6 +33,11 @@ else
$(CORE_EMU_DIR)/input/mouse.cpp
endif
ifeq ($(DEBUG), 1)
SOURCES_CXX += \
$(CORE_EMU_DIR)/dis.cpp
endif
ifeq ($(NEED_THREADING), 1)
FLAGS += -DWANT_THREADING
SOURCES_C += $(CORE_DIR)/threads.c

View File

@ -268,9 +268,11 @@ std::string DisassembleMIPS(uint32 PC, uint32 instr)
snprintf(s_a, sizeof(s_a), "%d", shamt);
#if 0
if(immediate < 0)
snprintf(s_i, sizeof(s_i), "%d", immediate);
else
#endif
snprintf(s_i, sizeof(s_i), "0x%04x", (uint32)immediate);
snprintf(s_z, sizeof(s_z), "0x%04x", immediate_ze);