Changeset - r5307:0a3f3f03c08c
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2006-12-10 10:12:54
peter1138@openttd.org
(svn r7463) -Codechange: Don't load invalid NewGRF files from the configuration file; instead show a warning.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
settings.c
Show inline comments
 
@@ -1505,7 +1505,10 @@ const char *GRFProcessParams(const IniIt
 
	/* Loading newgrf stuff from configuration file */
 
	c = calloc(1, sizeof(*c));
 
	c->filename = strdup(item->name);
 
	FillGRFDetails(c);
 
	if (!FillGRFDetails(c)) {
 
		ShowInfoF("ini: ignoring invalid NewGRF '%s'", c->filename);
 
		return NULL;
 
	}
 

	
 
	if (*item->value != '\0') {
 
		c->num_params = parse_intlist(item->value, (int*)c->param, lengthof(c->param));
0 comments (0 inline, 0 general)