Merge pull request #90425 from tracefree/load-pack-fix

Fix "res://" being replaced by resource packs in the editor and on Android
This commit is contained in:
Thaddeus Crews
2025-01-16 17:18:02 -06:00
5 changed files with 79 additions and 12 deletions

View File

@@ -151,6 +151,7 @@
Loads the contents of the .pck or .zip file specified by [param pack] into the resource filesystem ([code]res://[/code]). Returns [code]true[/code] on success.
[b]Note:[/b] If a file from [param pack] shares the same path as a file already in the resource filesystem, any attempts to load that file will use the file from [param pack] unless [param replace_files] is set to [code]false[/code].
[b]Note:[/b] The optional [param offset] parameter can be used to specify the offset in bytes to the start of the resource pack. This is only supported for .pck files.
[b]Note:[/b] [DirAccess] will not show changes made to the contents of [code]res://[/code] after calling this function.
</description>
</method>
<method name="localize_path" qualifiers="const">