rnd-20020531-1-src
[rocksndiamonds.git] / src / libgame / misc.c
index c59749ff92e94c71888d2dad04dc23d6d76df1cf..b344ba6f2a9e65365ea36b4fe7c14359b13c9aeb 100644 (file)
@@ -1206,6 +1206,17 @@ boolean FileIsMusic(char *basename)
   return FALSE;
 }
 
+boolean FileIsArtworkType(char *basename, int type)
+{
+  if ((type == TREE_TYPE_GRAPHICS_DIR && FileIsGraphic(basename)) ||
+      (type == TREE_TYPE_SOUNDS_DIR && FileIsSound(basename)) ||
+      (type == TREE_TYPE_MUSIC_DIR && FileIsMusic(basename)))
+    return TRUE;
+
+  return FALSE;
+}
+
+
 /* ========================================================================= */
 /* functions only needed for non-Unix (non-command-line) systems */
 /* ========================================================================= */