1.1 --- a/src/config.c Sat Oct 27 05:44:54 2007 +0000
1.2 +++ b/src/config.c Wed Oct 31 09:05:44 2007 +0000
1.5 - * $Id: config.c,v 1.4 2007-10-27 05:44:53 nkeynes Exp $
1.6 + * $Id: config.c,v 1.5 2007-10-28 08:29:29 nkeynes Exp $
1.8 * User configuration support
1.11 { "save path", CONFIG_TYPE_PATH, "save" },
1.12 { "bootstrap", CONFIG_TYPE_FILE, "IP.BIN" },
1.13 { "gdrom", CONFIG_TYPE_FILE, NULL },
1.14 + { "recent", CONFIG_TYPE_FILE, NULL },
1.15 { NULL, CONFIG_TYPE_NONE }};
1.17 static struct lxdream_config_entry serial_config[] =
1.20 if( entry != NULL ) {
1.21 while( entry->key != NULL ) {
1.22 - fprintf( f, "%s = %s\n", entry->key, entry->value );
1.23 + if( entry->value != NULL ) {
1.24 + fprintf( f, "%s = %s\n", entry->key, entry->value );
1.28 } else if( strcmp(group->key, "controllers") == 0 ) {
1.30 fprintf( f, "Subdevice %d = %s\n", j, dev->device_class->name );
1.31 entry = dev->get_config(dev);
1.32 while( entry->key != NULL ) {
1.33 - fprintf( f, "%*c%s = %s\n", j==0?4:8, ' ',entry->key, entry->value );
1.34 + if( entry->value != NULL ) {
1.35 + fprintf( f, "%*c%s = %s\n", j==0?4:8, ' ',entry->key, entry->value );