diff options
author | Clay John <claynjohn@gmail.com> | 2022-10-28 10:56:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 10:56:32 -0700 |
commit | e3b66ff9e36f2421736f521fe5f3ca21bfe7d6fa (patch) | |
tree | 38fe0ee9dfdb1b2c2dbd9f7e12cd80e9914214af /doc | |
parent | 999df8cdbfb73286aed661699361de91766e68cc (diff) | |
parent | e23f82f3c1987f7d275ad638f43d735d4081f69b (diff) |
Merge pull request #67621 from groud/resource_saver_expose_recognize_path
Expose the logic to recognize a save path in ResourceSaver
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/ResourceFormatSaver.xml | 9 |
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" /> |