Android: Move InstallWAD to a new WiiUtils class

I'm trying to move away from dumping every native method
in NativeLibrary.
This commit is contained in:
JosJuice
2021-01-17 22:15:13 +01:00
parent 2ada5b422d
commit 80b56b6575
6 changed files with 31 additions and 14 deletions

View File

@ -0,0 +1,22 @@
// Copyright 2021 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include <string>
#include <jni.h>
#include "jni/AndroidCommon/AndroidCommon.h"
#include "Core/WiiUtils.h"
extern "C" {
JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_utils_WiiUtils_installWAD(JNIEnv* env,
jclass,
jstring jFile)
{
const std::string path = GetJString(env, jFile);
return static_cast<jboolean>(WiiUtils::InstallWAD(path));
}
}