Fix build when using EightyZ80 cpu core

This commit is contained in:
negativeExponent 2020-01-21 00:21:06 +08:00
parent c4dbbac8da
commit 093ce52425
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,7 @@ SOURCES_C += \
$(SOURCE_DIR)/cpu_cores/eighty/z80_ops.c \
$(SOURCE_DIR)/cpu_cores/eighty/z80_wrap.c
else
CFLAGS += -DUSE_Z80
SOURCES_C += $(SOURCE_DIR)/cpu_cores/z80/z80.c
endif

View File

@ -69,7 +69,10 @@ void system_load_state_mem(void)
/* Load Z80 context */
state_read(Z80_Context, sizeof(z80_t));
#ifdef USE_Z80
Z80.irq_callback = sms_irq_callback;
#endif
/* Load YM2413 context */
state_read(YM2413_GetContextPtr(), YM2413_GetContextSize());