summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorFlorian Kothmeier <floriankothmeier@web.de>2019-09-23 22:41:25 +0200
committerFlorian Kothmeier <floriankothmeier@web.de>2019-09-25 15:29:59 +0200
commitaae25abf3080283bbff29b8264f24d37f935922a (patch)
treedc1d35e5d2aa8d7816a8b4fb55bd05ad37d54c2b /doc/classes
parent0ea54eeb0672c405d7ad0edf8444f0d86158f8b6 (diff)
Add flag to control the replacement of files by ProjectSettings.load_resource_pack
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/ProjectSettings.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml
index b42a10b13b..f4e54a2a90 100644
--- a/doc/classes/ProjectSettings.xml
+++ b/doc/classes/ProjectSettings.xml
@@ -80,9 +80,11 @@
</return>
<argument index="0" name="pack" type="String">
</argument>
+ <argument index="1" name="replace_files" type="bool" default="true">
+ </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].
+ [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].
</description>
</method>
<method name="localize_path" qualifiers="const">