Android: Fix jobject/jclass warnings

Static methods use jclass, and non-static methods use jobject.
This commit is contained in:
JosJuice
2020-11-06 19:04:24 +01:00
parent 6a4ac74ec4
commit 57dc54144d
3 changed files with 55 additions and 58 deletions

View File

@ -28,7 +28,7 @@ extern "C" {
#endif
JNIEXPORT jlong JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCache_newGameFileCache(
JNIEnv* env, jobject obj, jstring path)
JNIEnv* env, jclass obj, jstring path)
{
return reinterpret_cast<jlong>(new UICommon::GameFileCache(GetJString(env, path)));
}