X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=45509d79019f31e6df678779eb462c4aaabd8903;hp=e8e99a382d2f1b109083b7e94705d0b2e1db2da3;hb=32c4954de6a800eef636c8167fb3469f6f3182c8;hpb=ae9c6c4794c6a8f9704850427de3ebbe933400da diff --git a/src/libgame/setup.c b/src/libgame/setup.c index e8e99a38..45509d79 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -262,6 +262,26 @@ static char *getDefaultMusicDir(char *music_subdir) 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 : @@ -278,6 +298,7 @@ static char *getDefaultArtworkDir(int type) type == TREE_TYPE_MUSIC_DIR ? getDefaultMusicDir(MUS_CLASSIC_SUBDIR) : ""); } +#endif static char *getUserGraphicsDir() {