mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-05 12:15:19 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user