yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

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
1 changed files with 6 additions and 6 deletions

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;