From 6b34f134bf16e9513813adb172110beffcb78f2d Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Mon, 14 Oct 2019 23:16:25 +0900 Subject: [PATCH] More libretro changes. --- bsnes/target-libretro/GNUmakefile | 6 +++--- bsnes/target-libretro/libretro.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bsnes/target-libretro/GNUmakefile b/bsnes/target-libretro/GNUmakefile index 9f1343e8..f64c7242 100644 --- a/bsnes/target-libretro/GNUmakefile +++ b/bsnes/target-libretro/GNUmakefile @@ -10,11 +10,11 @@ obj/libretro.o: target-libretro/libretro.cpp all: $(objects) ifeq ($(platform),linux) - $(strip $(compiler) -o out/$(name).so -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic -lpthread -ldl -lgomp) + $(strip $(compiler) -o out/$(name).so -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic $(options)) else ifeq ($(platform),windows) - $(strip $(compiler) -o out/$(name).dll -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -static-libgcc -static-libstdc++ -Wl,-Bstatic -lws2_32 -lpthread -lgomp -Wl,-Bdynamic) + $(strip $(compiler) -o out/$(name).dll -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic $(options)) else ifeq ($(platform),macos) - $(strip $(compiler) -o out/$(name).dylib -shared $(objects) -lpthread -ldl) + $(strip $(compiler) -o out/$(name).dylib -shared $(objects) $(options)) else ifeq ($(platform), ios-arm64) ifeq ($(IOSSDK),) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) diff --git a/bsnes/target-libretro/libretro.cpp b/bsnes/target-libretro/libretro.cpp index 7344e734..3a804e9d 100644 --- a/bsnes/target-libretro/libretro.cpp +++ b/bsnes/target-libretro/libretro.cpp @@ -484,6 +484,7 @@ RETRO_API void retro_reset() RETRO_API void retro_run() { check_variables(); + input_poll(); emulator->run(); }