rnd-20030127-2-src
authorHolger Schemel <info@artsoft.org>
Mon, 27 Jan 2003 01:44:21 +0000 (02:44 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:40:06 +0000 (10:40 +0200)
src/conftime.h
src/libgame/image.c
src/libgame/misc.c

index 1b3fd5b607610d9f47561fdd25a4fd796edef2b7..a0e88a3ca1b4cc62b3312b1bae25b3675d69c845 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2003-01-27 02:14]"
+#define COMPILE_DATE_STRING "[2003-01-27 02:43]"
index f7bf538f86107728774541a4b51dedad954f5c1b..64dc3c416d4fe11a4fdd5eea5a8f64e3213041d2 100644 (file)
@@ -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()
index 1473bc30e95d11935ad0d720bae82af0fd315996..32910410bff9d25d3732813e85091a0fae53f269 100644 (file)
@@ -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);