mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Android: Don't name unused JNIEnv/jobject/jclass parameters
This commit is contained in:
parent
57dc54144d
commit
e4793cfb39
6 changed files with 85 additions and 110 deletions
|
@ -95,7 +95,7 @@ extern "C" {
|
|||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_isSettingSaveable(
|
||||
JNIEnv* env, jclass obj, jstring file, jstring section, jstring key)
|
||||
JNIEnv* env, jclass, jstring file, jstring section, jstring key)
|
||||
{
|
||||
const Config::Location location = GetLocation(env, file, section, key);
|
||||
return static_cast<jboolean>(ConfigLoaders::IsSettingSaveable(location));
|
||||
|
@ -103,7 +103,7 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_isSettingSav
|
|||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_loadGameInis(JNIEnv* env,
|
||||
jclass obj,
|
||||
jclass,
|
||||
jstring jGameId,
|
||||
jint jRevision)
|
||||
{
|
||||
|
@ -114,22 +114,21 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_loadGameInis
|
|||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_unloadGameInis(JNIEnv* env,
|
||||
jclass obj)
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_unloadGameInis(JNIEnv*, jclass)
|
||||
{
|
||||
Config::RemoveLayer(Config::LayerType::GlobalGame);
|
||||
Config::RemoveLayer(Config::LayerType::LocalGame);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_save(
|
||||
JNIEnv* env, jclass obj, jint layer)
|
||||
JNIEnv*, jclass, jint layer)
|
||||
{
|
||||
return GetLayer(layer, {})->Save();
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_isOverridden(
|
||||
JNIEnv* env, jclass obj, jstring file, jstring section, jstring key)
|
||||
JNIEnv* env, jclass, jstring file, jstring section, jstring key)
|
||||
{
|
||||
const Config::Location location = GetLocation(env, file, section, key);
|
||||
const bool result = Config::GetActiveLayerForConfig(location) != Config::LayerType::Base;
|
||||
|
@ -138,7 +137,7 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_isOverridden
|
|||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_deleteKey(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key)
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key)
|
||||
{
|
||||
const Config::Location location = GetLocation(env, file, section, key);
|
||||
return static_cast<jboolean>(GetLayer(layer, location)->DeleteKey(location));
|
||||
|
@ -146,7 +145,7 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_deleteKey(
|
|||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getString(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key,
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key,
|
||||
jstring default_value)
|
||||
{
|
||||
const Config::Location location = GetLocation(env, file, section, key);
|
||||
|
@ -155,7 +154,7 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getString(
|
|||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getBoolean(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key,
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key,
|
||||
jboolean default_value)
|
||||
{
|
||||
const Config::Location location = GetLocation(env, file, section, key);
|
||||
|
@ -163,15 +162,14 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getBoolean(
|
|||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getInt(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key,
|
||||
jint default_value)
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key, jint default_value)
|
||||
{
|
||||
return Get(layer, GetLocation(env, file, section, key), default_value);
|
||||
}
|
||||
|
||||
JNIEXPORT jfloat JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getFloat(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key,
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key,
|
||||
jfloat default_value)
|
||||
{
|
||||
return Get(layer, GetLocation(env, file, section, key), default_value);
|
||||
|
@ -179,26 +177,26 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_getFloat(
|
|||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_setString(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key, jstring value)
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key, jstring value)
|
||||
{
|
||||
return Set(layer, GetLocation(env, file, section, key), GetJString(env, value));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_setBoolean(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key, jboolean value)
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key, jboolean value)
|
||||
{
|
||||
return Set(layer, GetLocation(env, file, section, key), static_cast<bool>(value));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_setInt(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key, jint value)
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key, jint value)
|
||||
{
|
||||
return Set(layer, GetLocation(env, file, section, key), value);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_setFloat(
|
||||
JNIEnv* env, jclass obj, jint layer, jstring file, jstring section, jstring key, jfloat value)
|
||||
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key, jfloat value)
|
||||
{
|
||||
return Set(layer, GetLocation(env, file, section, key), value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue