View Single Post
Old 11-18-2009, 05:41 AM   #127
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by ericshliao View Post
Glib privodes a "Key-value file parser". See here: http://library.gnome.org/devel/glib/...le-parser.html
Those are cool functions, but they are not in Lgob (yet)

Personally I prefer to store settings in xml file (that's what always do at work). If you choose to store values in attributs (not in tags) (like <Opts option1='true' option2='false'/>), then converting Lua (nested) hashes to and from xml is quite simple...

Last edited by hansel; 11-18-2009 at 05:47 AM.
hansel is offline   Reply With Quote