projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed potential crash bug for special versions without "classic" artwork
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 73fc371603eaf3d6afb3953e1f7b2908137ad545..c7df978523968fd7427ad9f16aa6060cf687272c 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-871,6
+871,13
@@
(type) == ARTWORK_TYPE_MUSIC ? \
getUserMusicDir() : "")
(type) == ARTWORK_TYPE_MUSIC ? \
getUserMusicDir() : "")
+#define ARTWORK_DEFAULT_SUBDIR(type) \
+ ((type) == ARTWORK_TYPE_GRAPHICS ? \
+ GFX_DEFAULT_SUBDIR : \
+ (type) == ARTWORK_TYPE_SOUNDS ? \
+ SND_DEFAULT_SUBDIR : \
+ MUS_DEFAULT_SUBDIR)
+
#define UPDATE_BUSY_STATE() \
{ \
if (gfx.draw_busy_anim_function != NULL) \
#define UPDATE_BUSY_STATE() \
{ \
if (gfx.draw_busy_anim_function != NULL) \