You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Rename String plus_file to path_join
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user