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

@ -188,7 +188,7 @@ JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getBannerHe
}
JNIEXPORT jobject JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_parse(JNIEnv* env,
jobject obj,
jclass obj,
jstring path)
{
auto game_file = std::make_shared<UICommon::GameFile>(GetJString(env, path));

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)));
}