Disable the instance counter in libretro builds.

Dunno if it might help #13271...
This commit is contained in:
Henrik Rydgård committed 2020-08-11 22:32:41 +02:00
1 parent 14532847c7
commit f617bfce29
1 file changed
+2 -2
+2 -2
View File
@@ -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.