From: Holger Schemel Date: Mon, 27 Jan 2003 01:44:21 +0000 (+0100) Subject: rnd-20030127-2-src X-Git-Tag: 3.0.0^2~156 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ab0c2cf87c09fdc785f5124640a9f3334bb3a4b4;p=rocksndiamonds.git rnd-20030127-2-src --- diff --git a/src/conftime.h b/src/conftime.h index 1b3fd5b6..a0e88a3c 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2003-01-27 02:14]" +#define COMPILE_DATE_STRING "[2003-01-27 02:43]" diff --git a/src/libgame/image.c b/src/libgame/image.c index f7bf538f..64dc3c41 100644 --- a/src/libgame/image.c +++ b/src/libgame/image.c @@ -865,6 +865,23 @@ void InitImageList(struct ConfigInfo *config_list, int num_file_list_entries, image_info->free_artwork = FreeImage; } +void dumpImages() +{ + struct ListNode *node; + + if (image_info->content_list == NULL) + return; + + for (node = image_info->content_list; node != NULL; node = node->next) + { + ImageInfo *img_info = (ImageInfo *)node->content; + + printf("---> '%s' [%d]\n", + img_info->source_filename, + img_info->num_references); + } +} + void ReloadCustomImages() { #if 0 @@ -873,6 +890,8 @@ void ReloadCustomImages() LoadArtworkConfig(image_info); ReloadCustomArtworkList(image_info); + + dumpImages(); } void FreeAllImages() diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 1473bc30..32910410 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -1773,9 +1773,7 @@ void LoadArtworkConfig(struct ArtworkListInfo *artwork_info) } free(artwork_info->dynamic_file_list); - artwork_info->dynamic_file_list = NULL; - artwork_info->num_dynamic_file_list_entries = 0; FreeCustomArtworkList(artwork_info, &artwork_info->dynamic_artwork_list, &artwork_info->num_dynamic_file_list_entries);