mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove duplicate WARN_PRINTS macro
This commit is contained in:
parent
fc95c4d84c
commit
7e03bd1671
37 changed files with 65 additions and 74 deletions
|
|
@ -63,28 +63,28 @@ void EditorPluginSettings::update_plugins() {
|
|||
Error err2 = cf->load(path);
|
||||
|
||||
if (err2 != OK) {
|
||||
WARN_PRINTS("Can't load plugin config: " + path);
|
||||
WARN_PRINT("Can't load plugin config: " + path);
|
||||
} else {
|
||||
bool key_missing = false;
|
||||
|
||||
if (!cf->has_section_key("plugin", "name")) {
|
||||
WARN_PRINTS("Plugin config misses \"plugin/name\" key: " + path);
|
||||
WARN_PRINT("Plugin config misses \"plugin/name\" key: " + path);
|
||||
key_missing = true;
|
||||
}
|
||||
if (!cf->has_section_key("plugin", "author")) {
|
||||
WARN_PRINTS("Plugin config misses \"plugin/author\" key: " + path);
|
||||
WARN_PRINT("Plugin config misses \"plugin/author\" key: " + path);
|
||||
key_missing = true;
|
||||
}
|
||||
if (!cf->has_section_key("plugin", "version")) {
|
||||
WARN_PRINTS("Plugin config misses \"plugin/version\" key: " + path);
|
||||
WARN_PRINT("Plugin config misses \"plugin/version\" key: " + path);
|
||||
key_missing = true;
|
||||
}
|
||||
if (!cf->has_section_key("plugin", "description")) {
|
||||
WARN_PRINTS("Plugin config misses \"plugin/description\" key: " + path);
|
||||
WARN_PRINT("Plugin config misses \"plugin/description\" key: " + path);
|
||||
key_missing = true;
|
||||
}
|
||||
if (!cf->has_section_key("plugin", "script")) {
|
||||
WARN_PRINTS("Plugin config misses \"plugin/script\" key: " + path);
|
||||
WARN_PRINT("Plugin config misses \"plugin/script\" key: " + path);
|
||||
key_missing = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue