mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Android: Fix jobject/jclass warnings
Static methods use jclass, and non-static methods use jobject.
This commit is contained in:
@ -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));
|
||||
|
@ -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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user