diff --git a/core/os/dir_access.cpp b/core/os/dir_access.cpp index fa7f1d656..2a4134d05 100644 --- a/core/os/dir_access.cpp +++ b/core/os/dir_access.cpp @@ -454,7 +454,8 @@ String DirAccess::get_filesystem_abspath_for(String p_path) { if (resource_path != "") { p_path = p_path.replace_first("res:/", resource_path); } else { - p_path = p_path.replace_first("res://", ""); + //for resources in this case actually the "res://" is the proper filesystem path. + return p_path; } } } else if (p_path.begins_with("user://")) {