From 05cf3656b80df7ebf91baabf13aec9322269d733 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Wed, 29 Apr 2020 16:58:38 +0300 Subject: [PATCH] Fix libretro --- .github/workflows/sanity.yml | 1 + libretro/Makefile.common | 1 + libretro/libretro.c | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index d25a180..6c795fb 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -3,6 +3,7 @@ on: push jobs: sanity: + fail-fast: false strategy: matrix: os: [macos-latest, ubuntu-latest, ubuntu-16.04] diff --git a/libretro/Makefile.common b/libretro/Makefile.common index 947b14c..7f7688a 100644 --- a/libretro/Makefile.common +++ b/libretro/Makefile.common @@ -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 \ diff --git a/libretro/libretro.c b/libretro/libretro.c index 2ea1cb6..4831065 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -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 */