Fix libretro

This commit is contained in:
Lior Halphon 2020-04-29 16:58:38 +03:00
parent 0c91502859
commit 05cf3656b8
3 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ on: push
jobs:
sanity:
fail-fast: false
strategy:
matrix:
os: [macos-latest, ubuntu-latest, ubuntu-16.04]

View File

@ -13,6 +13,7 @@ SOURCES_C := $(CORE_DIR)/Core/gb.c \
$(CORE_DIR)/Core/joypad.c \
$(CORE_DIR)/Core/save_state.c \
$(CORE_DIR)/Core/random.c \
$(CORE_DIR)/Core/rumble.c \
$(CORE_DIR)/libretro/agb_boot.c \
$(CORE_DIR)/libretro/cgb_boot.c \
$(CORE_DIR)/libretro/dmg_boot.c \

View File

@ -376,6 +376,7 @@ static void init_for_current_model(unsigned id)
GB_set_sample_rate(&gameboy[i], AUDIO_FREQUENCY);
GB_apu_set_sample_callback(&gameboy[i], audio_callback);
GB_set_rumble_callback(&gameboy[i], rumble_callback);
GB_set_rumble_mode(&gameboy[i], GB_RUMBLE_CARTRIDGE_ONLY);
/* todo: attempt to make these more generic */