Page 1 of 1
Plugins Section
Posted: 20 Aug 2014, 16:26
by sandstranger
4
Re: Plugins Section
Posted: 21 Aug 2014, 03:40
by Digmaster
Does it need anymore functionality then just an order of files? If not, you might just want to go with, well, a dumb list of files in a text file. I don't see the need for anything more complicated?
Re: Plugins Section
Posted: 21 Aug 2014, 07:13
by psi29a
keep it simple, a simple csv file is easy to read for a human and serialize for a machine.
sqlite3 would just be another dependency that doesn't gain you anything, it is useful for storing lots of K/V and searching on those K/V.
Json is also OK, but more verbose.
CSV is perfect for this I think.
How often do you change the settings?
Re: Plugins Section
Posted: 21 Aug 2014, 09:44
by sandstranger
4
Re: Plugins Section
Posted: 21 Aug 2014, 09:51
by ezze
About sqlite and dependencies, it can easily avoided using the
amalgamation .c file directly, compiling it and linking it with openmw.
I am not sure for this particular task, but in some project I worked on having a db proven far superior than any other alternative. (transactions, tables, easy-to-do queries or serialization...)
Re: Plugins Section
Posted: 21 Aug 2014, 16:32
by SquireNed
You could also consider YAML if user-legibility is a concern and you've got a need for something that provides more data than a CSV.