rnd-20030127-2-src
[rocksndiamonds.git] / src / libgame / image.c
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()