+ printf(":1: setting to '%s' [type %d] ...\n", *artwork_path_ptr, ti->type);
+ }
+ else
+ {
+ /* No (or non-existing) artwork configured in "levelinfo.conf". This would
+ normally result in using the artwork configured in the setup menu. But
+ if an artwork subdirectory exists (which might contain custom artwork
+ or an artwork configuration file), this level artwork must be treated
+ as relative to the default "classic" artwork, not to the artwork that
+ is currently configured in the setup menu. */
+
+ char *dir = getPath2(getCurrentLevelDir(), ARTWORK_DIRECTORY(ti->type));
+
+ if (*artwork_set_ptr != NULL)
+ free(*artwork_set_ptr);
+
+ if (fileExists(dir))
+ {
+ *artwork_path_ptr = getStringCopy(getDefaultArtworkDir(ti->type));
+ *artwork_set_ptr = getStringCopy(getDefaultArtworkSet(ti->type));
+
+ if (ti->type == 0)
+ printf(":2: setting to '%s' [type %d] ...\n",
+ *artwork_path_ptr, ti->type);
+ }
+ else
+ {
+ *artwork_path_ptr = getStringCopy(UNDEFINED_FILENAME);
+ *artwork_set_ptr = NULL;
+
+ if (ti->type == 0)
+ printf(":3: setting to '%s' [type %d] ...\n",
+ *artwork_path_ptr, ti->type);
+ }
+
+ free(dir);
+ }