From 05a7e82582408f97a02b7444c53f19bebe888ed7 Mon Sep 17 00:00:00 2001 From: headshot2017 <> Date: Fri, 8 Mar 2024 18:23:43 -0400 Subject: [PATCH] comment out Thread_Detach code --- src/Platform_Switch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Platform_Switch.c b/src/Platform_Switch.c index f46e8c635..ce3c95fa3 100644 --- a/src/Platform_Switch.c +++ b/src/Platform_Switch.c @@ -253,10 +253,11 @@ void Thread_Start2(void* handle, Thread_StartFunc func) { } void Thread_Detach(void* handle) { - pthread_t* ptr = (pthread_t*)handle; + // crashes when loading singleplayer. pthread_detach isn't implemented, apparently? + /*pthread_t* ptr = (pthread_t*)handle; int res = pthread_detach(*ptr); if (res) Logger_Abort2(res, "Detaching thread"); - Mem_Free(ptr); + Mem_Free(ptr);*/ } void Thread_Join(void* handle) {