diff options
author | Juan Linietsky <reduzio@gmail.com> | 2022-12-05 19:01:59 +0100 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2023-01-09 18:52:00 +0100 |
commit | 07a964fce34bf72610db5d0a50c5c18adb974f97 (patch) | |
tree | f0d804da58e697b9a58ad47b624d0b2524064933 /doc/classes | |
parent | 964fc6e15d8631a06c2f442299759041328a8473 (diff) |
Ability to change a resource UID from API
* Works for text, binary and imported resources
* Allows better clean up of duplicate files.
TODO (future PRs):
* Use this API for assigning new UIDs to copied files.
* Use this API for UID conflict on FS scanning (if more than one file has the same UID, the newer one(s) should get assigned a different UID).
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ResourceFormatSaver.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/ResourceFormatSaver.xml b/doc/classes/ResourceFormatSaver.xml index 1f2af6d157..b0c57bc7cb 100644 --- a/doc/classes/ResourceFormatSaver.xml +++ b/doc/classes/ResourceFormatSaver.xml @@ -43,5 +43,13 @@ Returns [constant OK] on success, or an [enum Error] constant in case of failure. </description> </method> + <method name="_set_uid" qualifiers="virtual"> + <return type="int" enum="Error" /> + <param index="0" name="path" type="String" /> + <param index="1" name="uid" type="int" /> + <description> + Sets a new UID for the resource at the given [param path]. Returns [constant OK] on success, or an [enum Error] constant in case of failure. + </description> + </method> </methods> </class> |