| pljones | posted: Sat Feb 11, 2006 1:43 pm | |
Member since: 2005-04-02 From: London, UK Posts: 610
| Quaxi,
I'm currently using a folder under Plugins\pjse.coder.plugin to store various bits of information. Some of it, such as GlobalStrings.package, is intended to be "internal" to the plugin and I expect to replace it without letting the user know whenever needed.
However, I also have user-configurable information there: packages.txt identifies additional .package files and folders to add to the PJSE filetable.
(I also store small data items in simpe.xreg.)
My question is - should things like packages.txt be in the Plugins folder or under SimPe\Data (perhaps in a sub-folder called .\Plugins\pjse.coder.plugin)? |
| quaxi | posted: Sat Feb 11, 2006 3:26 pm | |
Member since: 2006-04-28 Posts: 3154
| It would make sens to put that into the Data Folder.
You can find it's location through the SimPE.Helper class. There is a static Property in it called SimPeDataPath.
I can also add a SimPePluginDataPath Property for the next Release. |
| pljones | posted: Sun Feb 12, 2006 3:22 pm | |
Member since: 2005-04-02 From: London, UK Posts: 610
| "quaxi" wrote: I can also add a SimPePluginDataPath Property for the next Release. Up to you -- I'm happy just to append \Plugins\<pluginfolder> to SimPeDataPath... Of course, I'd like ...\Plugins to exist. Should my plugin have to worry about that? If there was a SimPePluginDataPath, I'd definitely expect it to exist... ;) |
| Inge Jones | posted: Sun Feb 12, 2006 3:46 pm | |
Member since: 2005-03-06 Posts: 1899
| What? |
| jaxad0127 | posted: Sun Feb 12, 2006 8:45 pm | |
Member since: 2005-10-01 From: Near my laptop Posts: 1067
| Good question. I think pljones is worried about there being a plugins folder. |
| quaxi | posted: Mon Feb 13, 2006 9:43 pm | |
Member since: 2006-04-28 Posts: 3154
| "pljones" wrote: "quaxi" wrote: I can also add a SimPePluginDataPath Property for the next Release. Up to you -- I'm happy just to append \Plugins\<pluginfolder> to SimPeDataPath... Of course, I'd like ...\Plugins to exist. Should my plugin have to worry about that? If there was a SimPePluginDataPath, I'd definitely expect it to exist... ;)
SimPE will make sure that it exists. |
| pljones | posted: Mon Feb 13, 2006 11:47 pm | |
Member since: 2005-04-02 From: London, UK Posts: 610
| "quaxi" wrote: SimPE will make sure that it exists. Thanks :) |
| quaxi | posted: Tue Feb 14, 2006 12:29 am | |
Member since: 2006-04-28 Posts: 3154
| 0.55h does include that Property. |