View Single Post
Old 01-30-2016, 02:39 PM   #201
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
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 View Post
If i set the return code to something different as zero, are the changes i did via writefile, addfile etc rolled backed?
KevinH is offline   Reply With Quote