src/mess/hashfile.c
| r10446 | r10447 | |
| 588 | 588 | return 0; |
| 589 | 589 | } |
| 590 | 590 | |
| 591 | const char *extra_info = NULL; |
| 592 | |
| 591 | 593 | const char *read_hash_config(device_image_interface &image, const char *sysname) |
| 592 | 594 | { |
| 593 | 595 | hash_file *hashfile = NULL; |
| 594 | 596 | const hash_info *info = NULL; |
| 595 | | char *temp = NULL; |
| 596 | 597 | |
| 597 | 598 | /* open the hash file */ |
| 598 | 599 | hashfile = hashfile_open(image.device().machine->options(), sysname, FALSE, NULL); |
| r10446 | r10447 | |
| 608 | 609 | return NULL; |
| 609 | 610 | } |
| 610 | 611 | |
| 611 | | temp = core_strdup(info->extrainfo); |
| 612 | | if (!temp) |
| 612 | extra_info = auto_strdup(image.device().machine,info->extrainfo); |
| 613 | if (!extra_info) |
| 613 | 614 | { |
| 614 | 615 | hashfile_close(hashfile); |
| 615 | 616 | return NULL; |
| 616 | 617 | } |
| 617 | | |
| 618 | | astring result(temp); |
| 619 | | |
| 618 | |
| 620 | 619 | /* copy the relevant entries */ |
| 621 | 620 | hashfile_close(hashfile); |
| 622 | 621 | |
| 623 | | //printf("%s\n", result.cstr()); |
| 624 | | return result.cstr(); |
| 622 | return extra_info; |
| 625 | 623 | } |
| 626 | 624 | |
| 627 | 625 | const char *hashfile_extrainfo(device_image_interface &image) |
| r10446 | r10447 | |
| 631 | 629 | |
| 632 | 630 | /* now read the hash file */ |
| 633 | 631 | image.crc(); |
| 632 | extra_info = NULL; |
| 634 | 633 | drv = image.device().machine->gamedrv; |
| 635 | 634 | do |
| 636 | 635 | { |