Plugins Section
- sandstranger
- Posts: 438
- Joined: 19 May 2014, 19:53
- Location: Oblivion
Re: Plugins Section
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?
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Plugins Section
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?
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?
- sandstranger
- Posts: 438
- Joined: 19 May 2014, 19:53
- Location: Oblivion
Re: Plugins Section
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...)
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
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.