mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Rename String plus_file to path_join
This commit is contained in:
parent
051f24b067
commit
10a56981dc
100 changed files with 519 additions and 519 deletions
|
|
@ -260,7 +260,7 @@ Error GDScriptAnalyzer::resolve_inheritance(GDScriptParser::ClassNode *p_class,
|
|||
|
||||
if (!p_class->extends_path.is_empty()) {
|
||||
if (p_class->extends_path.is_relative_path()) {
|
||||
p_class->extends_path = class_type.script_path.get_base_dir().plus_file(p_class->extends_path).simplify_path();
|
||||
p_class->extends_path = class_type.script_path.get_base_dir().path_join(p_class->extends_path).simplify_path();
|
||||
}
|
||||
Ref<GDScriptParserRef> parser = get_parser_for(p_class->extends_path);
|
||||
if (parser.is_null()) {
|
||||
|
|
@ -3185,7 +3185,7 @@ void GDScriptAnalyzer::reduce_preload(GDScriptParser::PreloadNode *p_preload) {
|
|||
p_preload->resolved_path = p_preload->path->reduced_value;
|
||||
// TODO: Save this as script dependency.
|
||||
if (p_preload->resolved_path.is_relative_path()) {
|
||||
p_preload->resolved_path = parser->script_path.get_base_dir().plus_file(p_preload->resolved_path);
|
||||
p_preload->resolved_path = parser->script_path.get_base_dir().path_join(p_preload->resolved_path);
|
||||
}
|
||||
p_preload->resolved_path = p_preload->resolved_path.simplify_path();
|
||||
if (!FileAccess::exists(p_preload->resolved_path)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue