summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-03 07:33:19 +0200
committerGitHub <noreply@github.com>2020-09-03 07:33:19 +0200
commit4a5138bb99f5a063035c1d34de26af050bef5dc3 (patch)
tree6ed4d6eecf7ed43ff107873619260788ebcc5e50 /doc/classes
parent71833520da2bfa39201bc9734432de47a18aaa14 (diff)
parentc524d50444f98039faab75f7d701ca54a82e5848 (diff)
Merge pull request #40400 from Arivval/load-resourcepack-with-offset
Added PCK file loading with offset feature
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/ProjectSettings.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml
index e0e4a41444..38d65f6338 100644
--- a/doc/classes/ProjectSettings.xml
+++ b/doc/classes/ProjectSettings.xml
@@ -92,9 +92,12 @@
</argument>
<argument index="1" name="replace_files" type="bool" default="true">
</argument>
+ <argument index="2" name="offset" type="int" default="0">
+ </argument>
<description>
Loads the contents of the .pck or .zip file specified by [code]pack[/code] into the resource filesystem ([code]res://[/code]). Returns [code]true[/code] on success.
[b]Note:[/b] If a file from [code]pack[/code] shares the same path as a file already in the resource filesystem, any attempts to load that file will use the file from [code]pack[/code] unless [code]replace_files[/code] is set to [code]false[/code].
+ [b]Note:[/b] The optional [code]offset[/code] parameter can be used to specify the offset in bytes to the start of the resource pack. This is only supported for .pck files.
</description>
</method>
<method name="localize_path" qualifiers="const">