From 8284ff56b80c433d3908d2e15a5c406630c0a82a Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 16 Feb 2024 22:11:54 +0100 Subject: [PATCH] Fix DirAccess::get_filesystem_abspath_for() for .pck files. --- core/os/dir_access.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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://")) {