src/mess/image.c
| r7849 | r7850 | |
| 826 | 826 | } |
| 827 | 827 | } |
| 828 | 828 | |
| 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 | |
| 829 | 838 | /* did we fail to find the file? */ |
| 830 | 839 | if (!is_loaded(slot)) |
| 831 | 840 | { |
| r7849 | r7850 | |
| 949 | 958 | image->extrainfo = NULL; |
| 950 | 959 | image->basename_noext = NULL; |
| 951 | 960 | image->ptr = NULL; |
| 961 | image->full_software_name = NULL; |
| 962 | image->software_info_ptr = NULL; |
| 963 | image->software_part_ptr = NULL; |
| 952 | 964 | } |
| 953 | 965 | |
| 954 | 966 | |
| r7849 | r7850 | |
| 1145 | 1157 | |
| 1146 | 1158 | |
| 1147 | 1159 | |
| 1148 | | static int image_checkhash(image_slot_data *image) |
| 1160 | static void image_checkhash(image_slot_data *image) |
| 1149 | 1161 | { |
| 1150 | 1162 | const game_driver *drv; |
| 1151 | 1163 | char hash_string[HASH_BUF_SIZE]; |
| r7849 | r7850 | |
| 1161 | 1173 | /* do not cause a linear read of 600 megs please */ |
| 1162 | 1174 | /* TODO: use SHA/MD5 in the CHD header as the hash */ |
| 1163 | 1175 | if (image->info.type == IO_CDROM) |
| 1164 | | return FALSE; |
| 1176 | return; |
| 1165 | 1177 | |
| 1166 | 1178 | /* Skip calculating the hash when we have an image mounted through a software list */ |
| 1167 | 1179 | if ( image->software_info_ptr ) |
| 1168 | | return FALSE; |
| 1180 | return; |
| 1169 | 1181 | |
| 1170 | 1182 | /* retrieve the partial hash func */ |
| 1171 | 1183 | partialhash = (device_image_partialhash_func) image->dev->get_config_fct(DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| r7849 | r7850 | |
| 1183 | 1195 | } |
| 1184 | 1196 | while(rc && (drv != NULL)); |
| 1185 | 1197 | } |
| 1186 | | return TRUE; |
| 1198 | return; |
| 1187 | 1199 | } |
| 1188 | 1200 | |
| 1189 | 1201 | |