diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-01 12:06:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-01 12:06:35 +0200 |
| commit | d17eac735cc84abd9afd1e083df1a4e8a2c8e656 (patch) | |
| tree | d006c3a5457edbde9e4f9016b48d0968d70e3ce5 /editor/editor_node.cpp | |
| parent | b62041d1f3b6428974d5be7ad9d378a445d432ac (diff) | |
| parent | d2833d4f4d891b6a0ee32a04f9d32a410b998b93 (diff) | |
| download | redot-engine-d17eac735cc84abd9afd1e083df1a4e8a2c8e656.tar.gz | |
Merge pull request #29815 from NilsIrl/plus_file_1
Replace ` + "/" + ` with `String::file_add()`
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 83d820ff0e..865ffd1baa 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2818,7 +2818,7 @@ void EditorNode::set_addon_plugin_enabled(const String &p_addon, bool p_enabled, Ref<ConfigFile> cf; cf.instance(); - String addon_path = "res://addons/" + p_addon + "/plugin.cfg"; + String addon_path = String("res://addons").plus_file(p_addon).plus_file("plugin.cfg"); if (!DirAccess::exists(addon_path.get_base_dir())) { ProjectSettings *ps = ProjectSettings::get_singleton(); PoolStringArray enabled_plugins = ps->get("editor_plugins/enabled"); @@ -2845,7 +2845,7 @@ void EditorNode::set_addon_plugin_enabled(const String &p_addon, bool p_enabled, } String path = cf->get_value("plugin", "script"); - path = "res://addons/" + p_addon + "/" + path; + path = String("res://addons").plus_file(p_addon).plus_file(path); Ref<Script> script = ResourceLoader::load(path); |
