2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

android: Adjust variable name format for native config

This commit is contained in:
t895 2023-12-12 11:37:30 -05:00
parent ac222ceba2
commit 5acffe75df

View file

@ -21,13 +21,13 @@ std::unique_ptr<AndroidConfig> per_game_config;
template <typename T> template <typename T>
Settings::Setting<T>* getSetting(JNIEnv* env, jstring jkey) { Settings::Setting<T>* getSetting(JNIEnv* env, jstring jkey) {
auto key = GetJString(env, jkey); auto key = GetJString(env, jkey);
auto basicSetting = Settings::values.linkage.by_key[key]; auto basic_setting = Settings::values.linkage.by_key[key];
if (basicSetting != 0) { if (basic_setting != 0) {
return static_cast<Settings::Setting<T>*>(basicSetting); return static_cast<Settings::Setting<T>*>(basic_setting);
} }
auto basicAndroidSetting = AndroidSettings::values.linkage.by_key[key]; auto basic_android_setting = AndroidSettings::values.linkage.by_key[key];
if (basicAndroidSetting != 0) { if (basic_android_setting != 0) {
return static_cast<Settings::Setting<T>*>(basicAndroidSetting); return static_cast<Settings::Setting<T>*>(basic_android_setting);
} }
LOG_ERROR(Frontend, "[Android Native] Could not find setting - {}", key); LOG_ERROR(Frontend, "[Android Native] Could not find setting - {}", key);
return nullptr; return nullptr;