Fix startup on Android, oops

Forgot that we can't create android-compatible threads in global
constructors, for JNI reasons.
This commit is contained in:
Henrik Rydgård committed 2025-03-27 01:58:53 +01:00
1 parent f73df3a4da
commit e5d00ce493
7 files changed
+35 -19

No files matched your search

+2 -1
View File
@@ -30,10 +30,11 @@ AttachDetachFunc g_detach;
void AttachThreadToJNI() {
if (g_attach) {
g_attach();
} else {
ERROR_LOG(Log::System, "Couldn't attach thread - g_attach not set");
}
}
void DetachThreadFromJNI() {
if (g_detach) {
g_detach();