From f617bfce291e328cb4d27487da344323553ab39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 11 Aug 2020 22:32:41 +0200 Subject: [PATCH] Disable the instance counter in libretro builds. Dunno if it might help #13271... --- Core/Instance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Instance.cpp b/Core/Instance.cpp index ed6222b185..8d8554629a 100644 --- a/Core/Instance.cpp +++ b/Core/Instance.cpp @@ -92,7 +92,7 @@ void InitInstanceCounter() { //hIDMapFile = NULL; PPSSPP_ID = id; -#elif PPSSPP_PLATFORM(ANDROID) +#elif PPSSPP_PLATFORM(ANDROID) || defined(__LIBRETRO__) // TODO : replace shm_open & shm_unlink with ashmem or android-shmem PPSSPP_ID = 1; #else @@ -140,7 +140,7 @@ void ShutdownInstanceCounter() { CloseHandle(hIDMapFile); // If program exited(or crashed?) or the last handle reference closed the shared memory object will be deleted. hIDMapFile = nullptr; } -#elif PPSSPP_PLATFORM(ANDROID) +#elif PPSSPP_PLATFORM(ANDROID) || defined(__LIBRETRO__) // Do nothing #else // TODO : This unlink should be called when program exits instead of everytime the game reset.