Add uri_file_decode to handle + in file names.

This commit is contained in:
Pāvels Nadtočajevs 2025-04-07 22:49:57 +03:00
parent af2c713971
commit 9abe2e5294
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
13 changed files with 52 additions and 10 deletions

View file

@ -559,8 +559,8 @@ Error GDScriptWorkspace::parse_local_script(const String &p_path) {
}
String GDScriptWorkspace::get_file_path(const String &p_uri) const {
String path = p_uri.uri_decode();
String base_uri = root_uri.uri_decode();
String path = p_uri.uri_file_decode();
String base_uri = root_uri.uri_file_decode();
path = path.replacen(base_uri + "/", "res://");
return path;
}