From bc1949d7978c428ae3579e240368e20022ee77cd Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Thu, 23 Nov 2023 16:19:24 +0100 Subject: [PATCH] Correctly check scripts that must inherit `EditorPlugin` Also updates some error messages related to this kind of check across the codebase. --- core/io/resource_loader.cpp | 5 ++--- core/io/resource_saver.cpp | 5 ++--- editor/editor_autoload_settings.cpp | 11 +++++------ editor/editor_node.cpp | 6 +++--- editor/plugins/script_text_editor.cpp | 2 +- main/main.cpp | 11 +++++------ modules/gdscript/tests/gdscript_test_runner.cpp | 11 +++++------ 7 files changed, 23 insertions(+), 28 deletions(-) diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 529128b9a21..1fbb6ff2ed2 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -1113,11 +1113,10 @@ bool ResourceLoader::add_custom_resource_format_loader(String script_path) { Ref