Previous 15994 Revisions Next

r7703 Sunday 4th April, 2010 at 18:18:47 UTC by Fabio Priuli
Tentative compile fix for windows (*interface is used by d3d9intf.c), I hope it does not break anything else...
[src/mess]climess.c softlist.c softlist.h

src/mess/climess.c
r7702r7703
162162                        for ( software_part *part = software_find_part( swinfo, NULL, NULL ); part != NULL; part = software_part_next( part ) )
163163                        {
164164                           fprintf( out, "\t\t\t<part name=\"%s\"", part->name );
165                           if ( part->interface )
166                              fprintf( out, " interface=\"%s\"", part->interface );
165                           if ( part->interface_ )
166                              fprintf( out, " interface=\"%s\"", part->interface_ );
167167                           if ( part->feature )
168168                              fprintf( out, " features=\"%s\"", part->feature );
169169                           fprintf( out, ">\n");
src/mess/softlist.c
r7702r7703
255255   software_part *part = &swlist->softinfo->partdata[swlist->current_part_entry];
256256
257257   part->name = name;
258   part->interface = interface;
258   part->interface_ = interface;
259259   part->feature = feature;
260260   part->romdata = NULL;
261261
r7702r7703
783783            {
784784               if ( interface )
785785               {
786                  if ( !strcmp(interface, part->interface) )
786                  if ( !strcmp(interface, part->interface_) )
787787                  {
788788                     break;
789789                  }
r7702r7703
799799            /* No specific partname supplied, find the first match based on interface */
800800            if ( interface )
801801            {
802               if ( !strcmp(interface, part->interface) )
802               if ( !strcmp(interface, part->interface_) )
803803               {
804804                  break;
805805               }
r7702r7703
989989
990990      *sw_part = auto_alloc_clear( device->machine, software_part );
991991      (*sw_part)->name = auto_strdup( device->machine, software_part_ptr->name );
992      if ( software_part_ptr->interface )
993         (*sw_part)->interface = auto_strdup( device->machine, software_part_ptr->interface );
992      if ( software_part_ptr->interface_ )
993         (*sw_part)->interface_ = auto_strdup( device->machine, software_part_ptr->interface_ );
994994      if ( software_part_ptr->feature )
995995         (*sw_part)->feature = auto_strdup( device->machine, software_part_ptr->feature );
996996
src/mess/softlist.h
r7702r7703
1919struct _software_part
2020{
2121   const char *name;
22   const char *interface;
22   const char *interface_;
2323   const char *feature;
2424   struct rom_entry *romdata;
2525};
r7702r7703
5050software_info *software_list_find(software_list *swlist, const char *software);
5151software_info *software_list_next(software_list *swlist);
5252
53software_part *software_find_part(software_info *sw, const char *partname, const char *interface);
53software_part *software_find_part(software_info *sw, const char *partname, const char *interface_);
5454software_part *software_part_next(software_part *part);
5555
5656

Previous 15994 Revisions Next


© 1998-2018 The MESS Team