mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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:
1 parent
f73df3a4da
commit
e5d00ce493
7 files changed
+35
-19
No files matched your search
@@ -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