X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=5249adfcb599df787c497ba9aa6ba153949eedfb;hb=ce0ddd8fa8de5b935099390718980e59d4d10a09;hp=aaf4604ec0c1a431a7e1303835135ec9adce029c;hpb=34df5c161045d8dddfd1c24d7fb1cfa29e0a9746;p=rocksndiamonds.git 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 ? \