X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=5249adfcb599df787c497ba9aa6ba153949eedfb;hp=aaf4604ec0c1a431a7e1303835135ec9adce029c;hb=5f9b6d3b52c7f8dc10c01782d466a1e8f5ca5f26;hpb=34df5c161045d8dddfd1c24d7fb1cfa29e0a9746 diff --git a/src/libgame/system.h b/src/libgame/system.h index aaf4604e..5249adfc 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -743,6 +743,16 @@ getUserMusicDir() : \ NULL) +#define TREE_FIRST_NODE_PTR(t) ((t) == TREE_TYPE_LEVEL_DIR ? \ + &leveldir_first : \ + (t) == TREE_TYPE_GRAPHICS_DIR ? \ + &artwork.gfx_first : \ + (t) == TREE_TYPE_SOUNDS_DIR ? \ + &artwork.snd_first : \ + (t) == TREE_TYPE_MUSIC_DIR ? \ + &artwork.mus_first : \ + NULL) + // values for artwork handling #define LEVELDIR_ARTWORK_SET_PTR(leveldir, type) \ ((type) == ARTWORK_TYPE_GRAPHICS ? \