papasnewbag Posted June 2, 2011 Share Posted June 2, 2011 I was running my File Type plugin on a recent version of Paint.net and it wasn't working because the "ouput" param to OnSave() changed from type FileStream to GuardedStream (declared argument type is just Stream). For most of my code this is just fine, because there were no assumptions about it being a FileStream. But in particular there was one aspect that depended on FileStream.Name. My plugin takes all the layers of the PDN file and outputs them as separate files, while the primary export is a XML index file that contains metadata about those layers. It uses FileStream.Name to make sure that the exported layer files get put in the same place and with the same naming convention that was specified. Without that I don't know what else to do except use fixed paths (which is definitely undesirable and negates a lot of the value of the plugin). Is there a way to at least get the path that the file is meant to be saved to? I couldn't find any info here on GuardedStream. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.