+2007-09-26
+ * added new custom artwork setup option "auto-override non-CE sets" for
+ automatic artwork override that is only used for level sets without
+ custom element artwork (as it does not make much sense to override
+ any artwork that redefines custom element artwork for sets using CEs)
+ * fixed default artwork for "special" R'n'D versions always using the
+ "classic" artwork as the base if base artwork is not explicitly
+ defined in "levelinfo.conf", regardless of different default artwork
+ used by the special R'n'D version -- this is needed because any such
+ custom artwork is designed using the "classic" artwork definitions as
+ the base (including menu definitions and screen positions etc., which
+ would otherwise be taken from the different special default artwork)
+
2007-09-17
* fixed drawing of animated "quicksand.filling" and "quicksand.emptying"
for both EMC and R'n'D graphics engine (heavy workarounds needed due
-#define COMPILE_DATE_STRING "2007-09-26 00:53"
+#define COMPILE_DATE_STRING "2007-09-26 23:01"
if (filename == NULL)
return;
-#if 1
+#if 0
printf("LoadArtworkConfigFromFilename '%s' ...\n", filename);
#endif
/* first look for special artwork configured in level series config */
filename_base = getCustomArtworkLevelConfigFilename(artwork_info->type);
+#if 0
printf("::: filename_base == '%s' [%s, %s]\n", filename_base,
leveldir_current->graphics_set,
leveldir_current->graphics_path);
+#endif
if (fileExists(filename_base))
LoadArtworkConfigFromFilename(artwork_info, filename_base);
return music_dir;
}
+#if 1
+static char *getDefaultArtworkSet(int type)
+{
+ return (type == TREE_TYPE_GRAPHICS_DIR ? "gfx_classic" :
+ type == TREE_TYPE_SOUNDS_DIR ? "snd_classic" :
+ type == TREE_TYPE_MUSIC_DIR ? "mus_classic" : "");
+}
+
+static char *getDefaultArtworkDir(int type)
+{
+ return (type == TREE_TYPE_GRAPHICS_DIR ?
+ getDefaultGraphicsDir("gfx_classic") :
+ type == TREE_TYPE_SOUNDS_DIR ?
+ getDefaultSoundsDir("snd_classic") :
+ type == TREE_TYPE_MUSIC_DIR ?
+ getDefaultMusicDir("mus_classic") : "");
+}
+
+#else
+
static char *getDefaultArtworkSet(int type)
{
return (type == TREE_TYPE_GRAPHICS_DIR ? GFX_CLASSIC_SUBDIR :
type == TREE_TYPE_MUSIC_DIR ?
getDefaultMusicDir(MUS_CLASSIC_SUBDIR) : "");
}
+#endif
static char *getUserGraphicsDir()
{