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
2025-03-27 01:58:53 +01:00
parent f73df3a4da
commit e5d00ce493
7 changed files with 35 additions and 19 deletions
+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();