src/mess/image.c
| r7803 | r7804 | |
| 566 | 566 | void image_device_compute_hash(char *dest, const device_config *device, |
| 567 | 567 | const void *data, size_t length, unsigned int functions) |
| 568 | 568 | { |
| 569 | | // device_image_partialhash_func partialhash; |
| 569 | device_image_partialhash_func partialhash; |
| 570 | 570 | |
| 571 | 571 | /* retrieve the partial hash func */ |
| 572 | | // partialhash = (device_image_partialhash_func) device->get_config_string(DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| 572 | partialhash = (device_image_partialhash_func) device->get_config_fct(DEVINFO_FCT_IMAGE_PARTIAL_HASH); |
| 573 | 573 | |
| 574 | 574 | /* compute the hash */ |
| 575 | | // if (partialhash) |
| 576 | | // partialhash(dest, (const unsigned char*)data, length, functions); |
| 577 | | // else |
| 575 | if (partialhash) |
| 576 | partialhash(dest, (const unsigned char*)data, length, functions); |
| 577 | else |
| 578 | 578 | hash_compute(dest, (const unsigned char*)data, length, functions); |
| 579 | 579 | } |
| 580 | 580 | |