mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
android: Adjust variable name format for native config
This commit is contained in:
parent
ac222ceba2
commit
5acffe75df
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue