Settings specific to plugin (maybe folder to the plugin)
-
Hi Plugin Community,
My RegexTrainer plugin requires to store some settings into a config file (as requested by few users) but I couldnt find any article on where should i store settings specific to my plugin. I could vaguely remember (i could be wrong) that a plugin writen in c# will be initialized with few params and one of the params is the folder to the plugin. Any sample will be grately appreciated.
Thanks,
Ahmoy -
@ahmoy-law I’m not familiar with C#, so I can’t help you directly, but this repository should have example code.
Either directly or indirectly, you use NPPM_GETPLUGINSCONFIGDIR to get the path to the directory for plugin configuration files; by convention, the file name should be your plugin name, with whatever file extension is appropriate.
-
@Coises Many thanks!!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login