From e48c5daddfa70172c0eab57b8045a7087eec6e2c Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 18 Oct 2022 16:43:37 +0200 Subject: Unify usage of GLOBAL/EDITOR_GET --- core/io/resource_loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/io') diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 2fb357b520..10c794c564 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -914,7 +914,7 @@ void ResourceLoader::load_translation_remaps() { return; } - Dictionary remaps = ProjectSettings::get_singleton()->get("internationalization/locale/translation_remaps"); + Dictionary remaps = GLOBAL_GET("internationalization/locale/translation_remaps"); List keys; remaps.get_key_list(&keys); for (const Variant &E : keys) { @@ -941,7 +941,7 @@ void ResourceLoader::load_path_remaps() { return; } - Vector remaps = ProjectSettings::get_singleton()->get("path_remap/remapped_paths"); + Vector remaps = GLOBAL_GET("path_remap/remapped_paths"); int rc = remaps.size(); ERR_FAIL_COND(rc & 1); //must be even const String *r = remaps.ptr(); -- cgit v1.2.3