mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-10 12:56:20 +02:00
android: thread local env
This commit is contained in:
1 parent
3132839113
commit
0dec8feadb
6 files changed
+33
-70
No files matched your search
@@ -237,10 +237,8 @@ void Touchscreen::Motor::SetState(ControlState state)
|
||||
|
||||
void Touchscreen::Motor::Rumble(int padID, double state)
|
||||
{
|
||||
JNIEnv* env;
|
||||
IDCache::GetJavaVM()->AttachCurrentThread(&env, nullptr);
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
env->CallStaticVoidMethod(IDCache::GetNativeLibraryClass(), IDCache::GetDoRumble(), padID, state);
|
||||
IDCache::GetJavaVM()->DetachCurrentThread();
|
||||
}
|
||||
} // namespace Android
|
||||
} // namespace ciface
|
||||
Reference in new issue
Block a user