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!!!