if (fileExists(filename))
return filename;
+#if CREATE_SPECIAL_EDITION
+ free(filename);
+
+ /* 6th try: look for fallback artwork in old default artwork directory */
+ filename = getPath2(options.graphics_directory, GFX_FALLBACK_FILENAME);
+ if (fileExists(filename))
+ return filename;
+#endif
+
return NULL; /* cannot find specified artwork file anywhere */
}
if (fileExists(filename))
return filename;
+#if CREATE_SPECIAL_EDITION
+ free(filename);
+
+ /* 6th try: look for fallback artwork in old default artwork directory */
+ filename = getPath2(options.sounds_directory, SND_FALLBACK_FILENAME);
+ if (fileExists(filename))
+ return filename;
+#endif
+
return NULL; /* cannot find specified artwork file anywhere */
}
if (fileExists(filename))
return filename;
+#if CREATE_SPECIAL_EDITION
+ free(filename);
+
+ /* 6th try: look for fallback artwork in old default artwork directory */
+ filename = getPath2(options.music_directory, MUS_FALLBACK_FILENAME);
+ if (fileExists(filename))
+ return filename;
+#endif
+
return NULL; /* cannot find specified artwork file anywhere */
}
void *insert_ptr = NULL;
boolean read_continued_line = FALSE;
FILE *file;
- int line_nr = 0;
- int token_count = 0;
+ int line_nr = 0, token_count = 0, include_count = 0;
#if CHECK_TOKEN_VALUE_SEPARATOR__WARN_IF_MISSING
token_value_separator_warning = FALSE;
free(basepath);
free(basename);
free(filename_include);
+
+ include_count++;
}
else
{
Error(ERR_INFO_LINE, "-");
#endif
- if (token_count == 0)
+ if (token_count == 0 && include_count == 0)
Error(ERR_WARN, "configuration file '%s' is empty", filename);
if (top_recursion_level)