Hi rubeus,
Yes. If you set the return value to -1 (or any non-zero value), none of the changes you made will be used. They will all be discarded. The way the plugin interface is designed, any modificatins done by the plugin are simply recorded (as in the case of deletes) or stored in a temp directory. When the plugin completes and control returns to Sigil, if the plugin returns success (0), the actual changes are made by Sigil itself, otherwise it ignores them.
KevinH
Quote:
Originally Posted by rubeus
If i set the return code to something different as zero, are the changes i did via writefile, addfile etc rolled backed?
|