Merge pull request #356 from RobLoach/libretro-updates

libretro: Sync updates from libretro
This commit is contained in:
Lior Halphon 2021-02-28 20:14:15 +02:00 committed by GitHub
commit c6ea57209f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -119,6 +119,17 @@ else ifeq ($(platform), classic_armv7_a7)
LDFLAGS += -static-libgcc -static-libstdc++ LDFLAGS += -static-libgcc -static-libstdc++
endif endif
endif endif
###########################
# Raspberry Pi 4 in 64 mode
else ifneq (,$(findstring rpi4_64,$(platform)))
EXT ?= so
TARGET := $(TARGET_NAME)_libretro.$(EXT)
fpic := -fPIC
SHARED := -shared -Wl,--version-script=$(CORE_DIR)/libretro/link.T -Wl,--no-undefined
CFLAGS += -O2 -march=armv8-a+crc+simd -mtune=cortex-a72
###########################
####################################### #######################################
# Nintendo Switch (libtransistor) # Nintendo Switch (libtransistor)
else ifeq ($(platform), switch) else ifeq ($(platform), switch)

View File

@ -1128,6 +1128,7 @@ bool retro_load_game(const struct retro_game_info *info)
void retro_unload_game(void) void retro_unload_game(void)
{ {
for (int i = 0; i < emulated_devices; i++) { for (int i = 0; i < emulated_devices; i++) {
log_cb(RETRO_LOG_INFO, "Unloading GB: %d\n", emulated_devices);
GB_free(&gameboy[i]); GB_free(&gameboy[i]);
} }
} }