X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=b344ba6f2a9e65365ea36b4fe7c14359b13c9aeb;hb=7891415ca10eb882506eaaa3bca720ec75723a0e;hp=c59749ff92e94c71888d2dad04dc23d6d76df1cf;hpb=e788c9b6a44d9f2dea7aa048b48a11b14761229e;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index c59749ff..b344ba6f 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -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 */ /* ========================================================================= */