mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #65066 from aaronfranke/str-path-join
This commit is contained in:
commit
432b25d364
100 changed files with 519 additions and 519 deletions
|
|
@ -100,7 +100,7 @@
|
|||
# `path` will contain the absolute path to `hello.txt` next to the executable.
|
||||
# This is *not* identical to using `ProjectSettings.globalize_path()` with a `res://` path,
|
||||
# but is close enough in spirit.
|
||||
path = OS.get_executable_path().get_base_dir().plus_file("hello.txt")
|
||||
path = OS.get_executable_path().get_base_dir().path_join("hello.txt")
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
|||
|
|
@ -566,11 +566,11 @@
|
|||
Formats a number to have an exact number of [param digits] before the decimal point.
|
||||
</description>
|
||||
</method>
|
||||
<method name="plus_file" qualifiers="const">
|
||||
<method name="path_join" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="file" type="String" />
|
||||
<description>
|
||||
If the string is a path, this concatenates [param file] at the end of the string as a subpath. E.g. [code]"this/is".plus_file("path") == "this/is/path"[/code].
|
||||
If the string is a path, this concatenates [param file] at the end of the string as a subpath. E.g. [code]"this/is".path_join("path") == "this/is/path"[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="repeat" qualifiers="const">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue