Previous 15994 Revisions Next

r10447 Tuesday 15th February, 2011 at 13:26:56 UTC by Miodrag Milanović
small fix for hashfile
[src/mess]hashfile.c

src/mess/hashfile.c
r10446r10447
588588   return 0;
589589}
590590
591const char *extra_info = NULL;
592
591593const char *read_hash_config(device_image_interface &image, const char *sysname)
592594{
593595   hash_file *hashfile = NULL;
594596   const hash_info *info = NULL;
595   char *temp = NULL;
596597   
597598   /* open the hash file */
598599   hashfile = hashfile_open(image.device().machine->options(), sysname, FALSE, NULL);
r10446r10447
608609      return NULL;
609610   }
610611   
611   temp = core_strdup(info->extrainfo);
612   if (!temp)
612   extra_info = auto_strdup(image.device().machine,info->extrainfo);
613   if (!extra_info)
613614   {
614615      hashfile_close(hashfile);
615616      return NULL;
616617   }
617   
618   astring result(temp);
619   
618     
620619   /* copy the relevant entries */
621620   hashfile_close(hashfile);
622621   
623   //printf("%s\n", result.cstr());   
624   return result.cstr();
622   return extra_info;
625623}
626624
627625const char *hashfile_extrainfo(device_image_interface &image)
r10446r10447
631629
632630   /* now read the hash file */
633631   image.crc();
632   extra_info = NULL;
634633   drv = image.device().machine->gamedrv;
635634   do
636635   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team