summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2022-10-19 10:46:51 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2022-10-28 11:15:25 +0200
commite23f82f3c1987f7d275ad638f43d735d4081f69b (patch)
tree1184fdc459b2269db09f7250aee8472ae8b5dcd2 /doc
parent2b505b74b9b0a7005586ecaa9aa1236e86b18437 (diff)
Expose the logic to recognize a save path in ResourceSaver
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/ResourceFormatSaver.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/ResourceFormatSaver.xml b/doc/classes/ResourceFormatSaver.xml
index 05bfcf3446..1f2af6d157 100644
--- a/doc/classes/ResourceFormatSaver.xml
+++ b/doc/classes/ResourceFormatSaver.xml
@@ -24,6 +24,15 @@
Returns whether the given resource object can be saved by this saver.
</description>
</method>
+ <method name="_recognize_path" qualifiers="virtual const">
+ <return type="bool" />
+ <param index="0" name="resource" type="Resource" />
+ <param index="1" name="path" type="String" />
+ <description>
+ Returns [code]true[/code] if this saver handles a given save path and [code]false[/code] otherwise.
+ If this method is not implemented, the default behavior returns whether the path's extension is within the ones provided by [method _get_recognized_extensions].
+ </description>
+ </method>
<method name="_save" qualifiers="virtual">
<return type="int" />
<param index="0" name="resource" type="Resource" />