Previous 15994 Revisions Next

r7850 Sunday 18th April, 2010 at 09:59:14 UTC by Wilbert Pol
Improved information display of software loaded through a software list. Changed the image_checkhash return type to void.
[src/mess]image.c

src/mess/image.c
r7849r7850
826826      }
827827   }
828828
829   /* Copy some image information when we have been loaded through a software list */
830   if ( slot->software_info_ptr )
831   {
832      slot->longname = (char *)slot->software_info_ptr->longname;
833      slot->manufacturer = (char *)slot->software_info_ptr->publisher;
834      slot->year = (char *)slot->software_info_ptr->year;
835      //slot->playable = (char *)slot->software_info_ptr->supported;
836   }
837
829838   /* did we fail to find the file? */
830839   if (!is_loaded(slot))
831840   {
r7849r7850
949958    image->extrainfo = NULL;
950959    image->basename_noext = NULL;
951960    image->ptr = NULL;
961   image->full_software_name = NULL;
962   image->software_info_ptr = NULL;
963   image->software_part_ptr = NULL;
952964}
953965
954966
r7849r7850
11451157
11461158
11471159
1148static int image_checkhash(image_slot_data *image)
1160static void image_checkhash(image_slot_data *image)
11491161{
11501162    const game_driver *drv;
11511163    char hash_string[HASH_BUF_SIZE];
r7849r7850
11611173        /* do not cause a linear read of 600 megs please */
11621174        /* TODO: use SHA/MD5 in the CHD header as the hash */
11631175        if (image->info.type == IO_CDROM)
1164            return FALSE;
1176            return;
11651177
11661178      /* Skip calculating the hash when we have an image mounted through a software list */
11671179      if ( image->software_info_ptr )
1168         return FALSE;
1180         return;
11691181
11701182        /* retrieve the partial hash func */
11711183        partialhash = (device_image_partialhash_func) image->dev->get_config_fct(DEVINFO_FCT_IMAGE_PARTIAL_HASH);
r7849r7850
11831195        }
11841196        while(rc && (drv != NULL));
11851197    }
1186    return TRUE;
1198    return;
11871199}
11881200
11891201

Previous 15994 Revisions Next


© 1998-2018 The MESS Team