jni/config.cpp: Reworded default config assert message for clarity

This commit is contained in:
OpenSauce04 2026-05-27 17:38:08 +01:00 committed by OpenSauce
parent b1e537a485
commit 56f738eb06

View File

@ -339,14 +339,13 @@ void Config::Reload() {
for (auto key = Settings::Keys::keys_array.begin(); key != Settings::Keys::keys_array.end(); for (auto key = Settings::Keys::keys_array.begin(); key != Settings::Keys::keys_array.end();
++key) { ++key) {
const auto key_declaration_string = std::string(*key) + " ="; const auto key_declaration_string = std::string(*key) + " =";
// FIXME: This code looks so ass when formatted by clang-format -OS if ((std::ranges::find(DefaultINI::android_config_omitted_keys, *key) ==
if (std::ranges::find(DefaultINI::android_config_omitted_keys, *key) == std::end(DefaultINI::android_config_omitted_keys)) &&
std::end(DefaultINI::android_config_omitted_keys) && (std::string(DefaultINI::android_config_default_file_content)
std::string(DefaultINI::android_config_default_file_content) .find(key_declaration_string) == std::string::npos)) {
.find(key_declaration_string) == std::string::npos) {
ASSERT_MSG(false, ASSERT_MSG(false,
"Validation of default content config failed: Missing or malformed key " "Validation of default config content (jni/default_ini.h) failed: Missing "
"declaration {}", "declaration for key '{}'",
*key); *key);
} }
} }