Previous 199869 Revisions Next

r32894 Thursday 23rd October, 2014 at 07:23:52 UTC by Oliver Stöneberg
fixed usage of uninitialized members in gtia_device (nw)
[src/emu]clifront.c clifront.h
[src/emu/sound]ay8910.c
[src/emu/video]upd7220.c
[src/lib/winpcap]Packet32.h Win32-Extensions.h bittypes.h ip6_misc.h pcap-bpf.h pcap-namedb.h pcap-stdinc.h pcap.h remote-ext.h
[src/lib/winpcap/pcap]bluetooth.h bpf.h namedb.h pcap.h sll.h usb.h vlan.h
[src/mame/video]gtia.c
[src/osd]osdcore.h osdnet.c
[src/osd/windows]windows.mak

trunk/src/emu/clifront.c
r241405r241406
6363   { CLICOMMAND_GETSOFTLIST ";glist",  "0",       OPTION_COMMAND,    "retrieve software list by name" },
6464   { CLICOMMAND_VERIFYSOFTLIST ";vlist", "0",     OPTION_COMMAND,    "verify software list by name" },
6565   { CLICOMMAND_LIST_MIDI_DEVICES ";mlist", "0",  OPTION_COMMAND,    "list available MIDI I/O devices" },
66   { CLICOMMAND_LIST_NETWORK_ADAPTERS ";nlist", "0",  OPTION_COMMAND,    "list available network adapters" },
6766   { NULL }
6867};
6968
r241405r241406
785784
786785
787786//-------------------------------------------------
788//  listnetworkadapters - output the list of network
789//  adapters available in the current system to be used
790//-------------------------------------------------
791
792void cli_frontend::listnetworkadapters(const char *gamename)
793{
794   m_osd.network_init();
795   osd_list_network_adapters();
796   m_osd.network_exit();
797}
798
799
800//-------------------------------------------------
801787//  verifyroms - verify the ROM sets of one or
802788//  more games
803789//-------------------------------------------------
r241405r241406
16551641      { CLICOMMAND_GETSOFTLIST,   &cli_frontend::getsoftlist },
16561642      { CLICOMMAND_VERIFYSOFTLIST,    &cli_frontend::verifysoftlist },
16571643      { CLICOMMAND_LIST_MIDI_DEVICES, &cli_frontend::listmididevices },
1658      { CLICOMMAND_LIST_NETWORK_ADAPTERS, &cli_frontend::listnetworkadapters },
16591644   };
16601645
16611646   // find the command
trunk/src/emu/clifront.h
r241405r241406
5050#define CLICOMMAND_GETSOFTLIST          "getsoftlist"
5151#define CLICOMMAND_VERIFYSOFTLIST       "verifysoftlist"
5252#define CLICOMMAND_LIST_MIDI_DEVICES    "listmidi"
53#define CLICOMMAND_LIST_NETWORK_ADAPTERS "listnetwork"
5453
5554
5655//**************************************************************************
r241405r241406
103102   void getsoftlist(const char *gamename = "*");
104103   void verifysoftlist(const char *gamename = "*");
105104   void listmididevices(const char *gamename = "*");
106   void listnetworkadapters(const char *gamename = "*");
107105
108106private:
109107   // internal helpers
trunk/src/emu/sound/ay8910.c
r241405r241406
828828         build_mosfet_resistor_table(ay8910_mosfet_param, m_res_load[chan], m_env_table[chan]);
829829      }
830830   }
831   else if (m_streams == AY8910_NUM_CHANNELS)
831   else
832832   {
833833      for (chan=0; chan < AY8910_NUM_CHANNELS; chan++)
834834      {
r241405r241406
840840    * The previous implementation added all three channels up instead of averaging them.
841841    * The factor of 3 will force the same levels if normalizing is used.
842842    */
843   else
844   {
845      build_3D_table(m_res_load[0], m_par, m_par_env, normalize, 3, m_zero_is_off, m_vol3d_table);
846   }
843   build_3D_table(m_res_load[0], m_par, m_par_env, normalize, 3, m_zero_is_off, m_vol3d_table);
847844}
848845
849846void ay8910_device::ay8910_statesave()
trunk/src/emu/video/upd7220.c
r241405r241406
775775
776776void upd7220_device::draw_pixel(int x, int y, int xi, UINT16 tile_data)
777777{
778   UINT32 addr = ((y * (m_pitch << (m_figs.m_gd ? 0 : 1))) + (x >> 3)) & 0x3ffff;
778   UINT32 addr = ((y * m_pitch * 2) + (x >> 3)) & 0x3ffff;
779779   UINT8 data = readbyte(addr);
780780   UINT8 new_pixel = (xi & 8 ? tile_data >> 8 : tile_data & 0xff) & (0x80 >> (xi & 7));
781781   new_pixel = new_pixel ? (0xff & (0x80 >> (x & 7))) : 0;
r241405r241406
15841584                     Quarth (PC-98xx) doesn't seem to use pitch here and it definitely wants bsy to be /2 to make scrolling to work.
15851585                     Xevious (PC-98xx) wants the pitch to be fixed at 80, and wants bsy to be /1
15861586                     Dragon Buster (PC-98xx) contradicts with Xevious with regards of the pitch tho ... */
1587            addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1)));
1587            addr = ((sad << 1) & 0x3ffff) + (y * m_pitch * 2);
15881588
15891589            if (!m_display_cb.isnull())
15901590               draw_graphics_line(bitmap, addr, y + (im ? bsy : (bsy >> 1)), wd);
trunk/src/mame/video/gtia.c
r241405r241406
240240
241241void gtia_device::device_reset()
242242{
243   /* reset the GTIA read/write/helper registers */
244   for (int i = 0; i < 32; i++)
245      write(machine().driver_data()->generic_space(), i, 0);
246243   memset(&m_r, 0, sizeof(m_r));
247244   memset(&m_h, 0, sizeof(m_h));
248245   memset(m_color_lookup, 0, sizeof(m_color_lookup));
249246
247   m_lumpf1 = 0;
248
249   /* reset the GTIA read/write/helper registers */
250   for (int i = 0; i < 32; i++)
251      write(machine().driver_data()->generic_space(), i, 0);
252
250253   if (is_ntsc())
251254      m_r.pal = 0xff;
252255   else
r241405r241406
265268   SETCOL_B(ILL, 0x3e);     /* bright red */
266269   SETCOL_B(EOR, 0xff);     /* yellow */
267270
268   m_lumpf1 = 0;
269271   m_huepm0 = 0;
270272   m_huepm1 = 0;
271273   m_huepm2 = 0;
trunk/src/osd/osdcore.h
r241405r241406
884884int osd_read_midi_channel(osd_midi_device *dev, UINT8 *pOut);
885885void osd_write_midi_channel(osd_midi_device *dev, UINT8 data);
886886
887
888void osd_list_network_adapters(void);
889
890887/***************************************************************************
891888    UNCATEGORIZED INTERFACES
892889***************************************************************************/
trunk/src/osd/osdnet.c
r241405r241406
105105{
106106   return netdev_list.count();
107107}
108
109void osd_list_network_adapters(void)
110{
111   #ifdef USE_NETWORK
112   int num_devs = netdev_list.count();
113
114   if (num_devs == 0)
115   {
116      printf("No network adapters were found\n");
117      return;
118   }
119
120   printf("Available network adapters:\n");
121   const netdev_entry_t *entry = netdev_first();
122   while(entry) {   
123      printf("   %s\n", entry->description);
124      entry = entry->m_next;
125   }
126   
127   #else
128   printf("Network is not supported in this build\n");
129   #endif
130}
131
trunk/src/osd/windows/windows.mak
r241405r241406
220220# explicitly set the entry point for UNICODE builds
221221LDFLAGS += /ENTRY:wmainCRTStartup
222222
223ifdef MSVC_BUILD
224ifdef DEBUG
225LDFLAGS += /NODEFAULTLIB:LIBCMT
226endif
227endif
228
229223# add some VC++-specific defines
230224DEFS += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DXML_STATIC -DWIN32
231225
r241405r241406
425419endif
426420
427421#-------------------------------------------------
428# WinPCap
429#-------------------------------------------------
430INCPATH += -I$(SRC)/lib/winpcap
431
432#-------------------------------------------------
433422# rules for building the libaries
434423#-------------------------------------------------
435424


Previous 199869 Revisions Next


© 1997-2024 The MAME Team