mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-02 04:55:28 -06:00
jni/config.cpp: Reworded default config assert message for clarity
This commit is contained in:
parent
b1e537a485
commit
56f738eb06
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user