Rename String::is_rel_path to String::is_relative_path
This commit is contained in:
parent
838a449d64
commit
d11c1afc04
23 changed files with 52 additions and 52 deletions
|
|
@ -335,7 +335,7 @@ Error ResourceLoaderBinary::parse_variant(Variant &r_v) {
|
|||
String exttype = get_unicode_string();
|
||||
String path = get_unicode_string();
|
||||
|
||||
if (path.find("://") == -1 && path.is_rel_path()) {
|
||||
if (path.find("://") == -1 && path.is_relative_path()) {
|
||||
// path is relative to file being loaded, so convert to a resource path
|
||||
path = ProjectSettings::get_singleton()->localize_path(res_path.get_base_dir().plus_file(path));
|
||||
}
|
||||
|
|
@ -626,7 +626,7 @@ Error ResourceLoaderBinary::load() {
|
|||
path = remaps[path];
|
||||
}
|
||||
|
||||
if (path.find("://") == -1 && path.is_rel_path()) {
|
||||
if (path.find("://") == -1 && path.is_relative_path()) {
|
||||
// path is relative to file being loaded, so convert to a resource path
|
||||
path = ProjectSettings::get_singleton()->localize_path(path.get_base_dir().plus_file(external_resources[i].path));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue