diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2016-10-13 11:30:04 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2016-10-13 11:51:38 +0200 |
commit | 2f2cea070e062415f290103f1823ab17ea4e5874 (patch) | |
tree | 51672a0df21b073381b5bffe1cd2f424e78fbe1e /core | |
parent | 11349a786be1fd02647493cfeff9883898ffd73e (diff) |
Properly handle absolute paths in Globals::localize_path
This give a proper fix for #4280 - #3106 , allowing absolute paths
that starts from the file system, not the resource folder
Diffstat (limited to 'core')
-rw-r--r-- | core/globals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/globals.cpp b/core/globals.cpp index b822f52f15..bef40ff330 100644 --- a/core/globals.cpp +++ b/core/globals.cpp @@ -54,7 +54,7 @@ String Globals::localize_path(const String& p_path) const { if (resource_path=="") return p_path; //not initialied yet - if (p_path.begins_with("res://") || p_path.begins_with("user://")) + if (p_path.begins_with("res://") || p_path.begins_with("user://") || p_path.is_abs_path()) return p_path.simplify_path(); |