Previous 199869 Revisions Next

r34348 Sunday 11th January, 2015 at 16:07:19 UTC by Miodrag Milanović
Move expat.h include to c file (nw)
[src/emu]softlist.c softlist.h
[src/emu/bus/nes]aladdin.c datach.c karastudio.c sunsoft_dcs.c
[src/emu/ui]miscmenu.c

trunk/src/emu/bus/nes/aladdin.c
r242859r242860
325325//-------------------------------------------------
326326
327327static SLOT_INTERFACE_START(ade_cart)
328   SLOT_INTERFACE_INTERNAL("algn", NES_ALGN_ROM)
329   SLOT_INTERFACE_INTERNAL("algq", NES_ALGQ_ROM)
328   SLOT_INTERFACE("algn", NES_ALGN_ROM)
329   SLOT_INTERFACE("algq", NES_ALGQ_ROM)
330330SLOT_INTERFACE_END
331331
332332
trunk/src/emu/bus/nes/datach.c
r242859r242860
372372//-------------------------------------------------
373373
374374static SLOT_INTERFACE_START(datach_cart)
375   SLOT_INTERFACE_INTERNAL("datach_rom", NES_DATACH_ROM)
376   SLOT_INTERFACE_INTERNAL("datach_ep1", NES_DATACH_24C01)
375   SLOT_INTERFACE("datach_rom", NES_DATACH_ROM)
376   SLOT_INTERFACE("datach_ep1", NES_DATACH_24C01)
377377SLOT_INTERFACE_END
378378
379379
trunk/src/emu/bus/nes/karastudio.c
r242859r242860
296296//-------------------------------------------------
297297
298298static SLOT_INTERFACE_START(karaoke_studio_cart)
299   SLOT_INTERFACE_INTERNAL("ks_exp", NES_KSEXPANSION_ROM)
299   SLOT_INTERFACE("ks_exp", NES_KSEXPANSION_ROM)
300300SLOT_INTERFACE_END
301301
302302
trunk/src/emu/bus/nes/sunsoft_dcs.c
r242859r242860
283283//-------------------------------------------------
284284
285285static SLOT_INTERFACE_START(ntb_cart)
286   SLOT_INTERFACE_INTERNAL("ntbrom", NES_NTB_ROM)
286   SLOT_INTERFACE("ntbrom", NES_NTB_ROM)
287287SLOT_INTERFACE_END
288288
289289static MACHINE_CONFIG_FRAGMENT( sub_slot )
trunk/src/emu/softlist.c
r242859r242860
1212#include "softlist.h"
1313#include "clifront.h"
1414#include "validity.h"
15#include "expat.h"
1516
1617#include <ctype.h>
1718
trunk/src/emu/softlist.h
r242859r242860
1010#define __SOFTLIST_H_
1111
1212#include "ui/menu.h"
13#include "expat.h"
1413#include "cstrpool.h"
1514
1615
trunk/src/emu/ui/miscmenu.c
r242859r242860
120120   else
121121   {
122122      astring temp;
123      current = machine().options().main_value(temp, slot->device().tag() + 1);
123      current = machine().options().main_value(temp,slot->device().tag()+1);
124124   }
125125
126126   return slot->option(current);
r242859r242860
154154-------------------------------------------------*/
155155int ui_menu_slot_devices::slot_get_length(device_slot_interface *slot)
156156{
157   const device_slot_option *current = slot_get_current_option(slot);
158
157159   int val = 0;
158160   for (const device_slot_option *option = slot->first_option(); option != NULL; option = option->next())
159      if (option->selectable())
161      if (option == current || option->selectable())
160162         val++;
161163
162164   return val;
r242859r242860
201203-------------------------------------------------*/
202204const char *ui_menu_slot_devices::slot_get_option(device_slot_interface *slot, int index)
203205{
204   if (index >= 0)
206   const device_slot_option *current = slot_get_current_option(slot);
207
208   if (index >= 0 )
205209   {
206210      int val = 0;
207211      for (const device_slot_option *option = slot->first_option(); option != NULL; option = option->next())
r242859r242860
209213         if (val == index)
210214            return option->name();
211215
212         if (option->selectable())
216         if (option == current || option->selectable())
213217            val++;
214218      }
215219   }
r242859r242860
247251   {
248252      /* record the menu item */
249253      const device_slot_option *option = slot_get_current_option(slot);
250      astring opt_name;
251      if (option == NULL)
252         opt_name.cpy("------");
253      else
254      {
255         opt_name.cpy(option->name());
256         if (slot->fixed() || slot_get_length(slot) == 0)
257            opt_name.cat(" [internal]");
258      }
259254
260      item_append(slot->device().tag() + 1, opt_name, (slot->fixed() || slot_get_length(slot) == 0) ? 0 : (MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW), (void *)slot);
255      item_append(slot->device().tag()+1, option == NULL ? "------" : option->name(), (slot->fixed() || slot_get_length(slot) == 0) ? 0 : (MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW), (void *)slot);
261256   }
262257   item_append(MENU_SEPARATOR_ITEM, NULL, 0, NULL);
263258   item_append("Reset",  NULL, 0, (void *)1);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team