X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=f0fbd60f3dc51c43ee6a62af47486917f035d616;hb=30d4bba6b5c11c262a79d442b67defe7eba9bfde;hp=a99c7a83fa80178fbcb3638091dbc8eea39d431a;hpb=837dfa6e81b54c0eeb00eeb7cf472f68d5947bab;p=rocksndiamonds.git diff --git a/src/libgame/setup.c b/src/libgame/setup.c index a99c7a83..f0fbd60f 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -327,13 +327,13 @@ static char *getSetupArtworkDir(TreeInfo *ti) return artwork_dir; } -void setLevelArtworkDir(TreeInfo *ti) +char *setLevelArtworkDir(TreeInfo *ti) { char **artwork_path_ptr, **artwork_set_ptr; TreeInfo *level_artwork; if (ti == NULL || leveldir_current == NULL) - return; + return NULL; artwork_path_ptr = &(LEVELDIR_ARTWORK_PATH(leveldir_current, ti->type)); artwork_set_ptr = &(LEVELDIR_ARTWORK_SET( leveldir_current, ti->type)); @@ -370,6 +370,8 @@ void setLevelArtworkDir(TreeInfo *ti) free(dir); } + + return *artwork_set_ptr; } inline static char *getLevelArtworkSet(int type)