Previous 15994 Revisions Next

r4137 Thursday 15th January, 2009 at 12:32:44 UTC by Nathan Woods
Minor issues missed in the 0.129u1 merge
[src/emu]audit.c
[src/osd/winui]properties.c

src/osd/winui/properties.c
r4136r4137
139139#include "winutf8.h"
140140#include "sound/2413intf.h"
141141#include "sound/3812intf.h"
142#include "sound/samples.h"
143#include "sound/vlm5030.h"
142144
143145typedef HANDLE HTHEME;
144146
src/emu/audit.c
r4136r4137
136136
137137int audit_samples(core_options *options, const game_driver *gamedrv, audit_record **audit)
138138{
139   int records = 0;
140#if HAS_SAMPLES
139141   machine_config *config = machine_config_alloc(gamedrv->machine_config);
140142   audit_record *record;
141143   int sndnum, sampnum;
142   int records = 0;
143144
144145   /* count the number of sample records attached to this driver */
145#if HAS_SAMPLES
146146   for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++)
147147      if (config->sound[sndnum].type == SOUND_SAMPLES)
148148      {
r4136r4137
156156                  records++;
157157         }
158158      }
159#endif
160159
161160   /* if no records, just quit now */
162161   if (records == 0)
r4136r4137
214213
215214skip:
216215   machine_config_free(config);
216#endif /* HAS_SAMPLES */
217217   return records;
218218}
219219

Previous 15994 Revisions Next


© 1998-2018 The MESS Team