You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Rename String plus_file to path_join
This commit is contained in:
@@ -1427,7 +1427,7 @@ Error FontFile::load_bitmap_font(const String &p_path) {
|
||||
while (!f->eof_reached() && f->get_position() <= off + block_size) {
|
||||
if (c == '\0') {
|
||||
String base_dir = p_path.get_base_dir();
|
||||
String file = base_dir.plus_file(String::utf8(cs.ptr(), cs.length()));
|
||||
String file = base_dir.path_join(String::utf8(cs.ptr(), cs.length()));
|
||||
if (RenderingServer::get_singleton() != nullptr) {
|
||||
Ref<Image> img;
|
||||
img.instantiate();
|
||||
@@ -1660,7 +1660,7 @@ Error FontFile::load_bitmap_font(const String &p_path) {
|
||||
}
|
||||
if (keys.has("file")) {
|
||||
String base_dir = p_path.get_base_dir();
|
||||
String file = base_dir.plus_file(keys["file"]);
|
||||
String file = base_dir.path_join(keys["file"]);
|
||||
if (RenderingServer::get_singleton() != nullptr) {
|
||||
Ref<Image> img;
|
||||
img.instantiate();
|
||||
|
||||
@@ -451,7 +451,7 @@ Error ResourceLoaderText::load() {
|
||||
|
||||
if (!path.contains("://") && path.is_relative_path()) {
|
||||
// path is relative to file being loaded, so convert to a resource path
|
||||
path = ProjectSettings::get_singleton()->localize_path(local_path.get_base_dir().plus_file(path));
|
||||
path = ProjectSettings::get_singleton()->localize_path(local_path.get_base_dir().path_join(path));
|
||||
}
|
||||
|
||||
if (remaps.has(path)) {
|
||||
@@ -861,7 +861,7 @@ void ResourceLoaderText::get_dependencies(Ref<FileAccess> p_f, List<String> *p_d
|
||||
|
||||
if (!using_uid && !path.contains("://") && path.is_relative_path()) {
|
||||
// path is relative to file being loaded, so convert to a resource path
|
||||
path = ProjectSettings::get_singleton()->localize_path(local_path.get_base_dir().plus_file(path));
|
||||
path = ProjectSettings::get_singleton()->localize_path(local_path.get_base_dir().path_join(path));
|
||||
}
|
||||
|
||||
if (p_add_types) {
|
||||
@@ -938,7 +938,7 @@ Error ResourceLoaderText::rename_dependencies(Ref<FileAccess> p_f, const String
|
||||
}
|
||||
bool relative = false;
|
||||
if (!path.begins_with("res://")) {
|
||||
path = base_path.plus_file(path).simplify_path();
|
||||
path = base_path.path_join(path).simplify_path();
|
||||
relative = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user