trunk/src/emu/clifront.c
r241405 | r241406 | |
63 | 63 | { CLICOMMAND_GETSOFTLIST ";glist", "0", OPTION_COMMAND, "retrieve software list by name" }, |
64 | 64 | { CLICOMMAND_VERIFYSOFTLIST ";vlist", "0", OPTION_COMMAND, "verify software list by name" }, |
65 | 65 | { 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" }, |
67 | 66 | { NULL } |
68 | 67 | }; |
69 | 68 | |
r241405 | r241406 | |
785 | 784 | |
786 | 785 | |
787 | 786 | //------------------------------------------------- |
788 | | // listnetworkadapters - output the list of network |
789 | | // adapters available in the current system to be used |
790 | | //------------------------------------------------- |
791 | | |
792 | | void 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 | | //------------------------------------------------- |
801 | 787 | // verifyroms - verify the ROM sets of one or |
802 | 788 | // more games |
803 | 789 | //------------------------------------------------- |
r241405 | r241406 | |
1655 | 1641 | { CLICOMMAND_GETSOFTLIST, &cli_frontend::getsoftlist }, |
1656 | 1642 | { CLICOMMAND_VERIFYSOFTLIST, &cli_frontend::verifysoftlist }, |
1657 | 1643 | { CLICOMMAND_LIST_MIDI_DEVICES, &cli_frontend::listmididevices }, |
1658 | | { CLICOMMAND_LIST_NETWORK_ADAPTERS, &cli_frontend::listnetworkadapters }, |
1659 | 1644 | }; |
1660 | 1645 | |
1661 | 1646 | // find the command |
trunk/src/emu/clifront.h
r241405 | r241406 | |
50 | 50 | #define CLICOMMAND_GETSOFTLIST "getsoftlist" |
51 | 51 | #define CLICOMMAND_VERIFYSOFTLIST "verifysoftlist" |
52 | 52 | #define CLICOMMAND_LIST_MIDI_DEVICES "listmidi" |
53 | | #define CLICOMMAND_LIST_NETWORK_ADAPTERS "listnetwork" |
54 | 53 | |
55 | 54 | |
56 | 55 | //************************************************************************** |
r241405 | r241406 | |
103 | 102 | void getsoftlist(const char *gamename = "*"); |
104 | 103 | void verifysoftlist(const char *gamename = "*"); |
105 | 104 | void listmididevices(const char *gamename = "*"); |
106 | | void listnetworkadapters(const char *gamename = "*"); |
107 | 105 | |
108 | 106 | private: |
109 | 107 | // internal helpers |
trunk/src/emu/sound/ay8910.c
r241405 | r241406 | |
828 | 828 | build_mosfet_resistor_table(ay8910_mosfet_param, m_res_load[chan], m_env_table[chan]); |
829 | 829 | } |
830 | 830 | } |
831 | | else if (m_streams == AY8910_NUM_CHANNELS) |
| 831 | else |
832 | 832 | { |
833 | 833 | for (chan=0; chan < AY8910_NUM_CHANNELS; chan++) |
834 | 834 | { |
r241405 | r241406 | |
840 | 840 | * The previous implementation added all three channels up instead of averaging them. |
841 | 841 | * The factor of 3 will force the same levels if normalizing is used. |
842 | 842 | */ |
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); |
847 | 844 | } |
848 | 845 | |
849 | 846 | void ay8910_device::ay8910_statesave() |
trunk/src/emu/video/upd7220.c
r241405 | r241406 | |
775 | 775 | |
776 | 776 | void upd7220_device::draw_pixel(int x, int y, int xi, UINT16 tile_data) |
777 | 777 | { |
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; |
779 | 779 | UINT8 data = readbyte(addr); |
780 | 780 | UINT8 new_pixel = (xi & 8 ? tile_data >> 8 : tile_data & 0xff) & (0x80 >> (xi & 7)); |
781 | 781 | new_pixel = new_pixel ? (0xff & (0x80 >> (x & 7))) : 0; |
r241405 | r241406 | |
1584 | 1584 | Quarth (PC-98xx) doesn't seem to use pitch here and it definitely wants bsy to be /2 to make scrolling to work. |
1585 | 1585 | Xevious (PC-98xx) wants the pitch to be fixed at 80, and wants bsy to be /1 |
1586 | 1586 | 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); |
1588 | 1588 | |
1589 | 1589 | if (!m_display_cb.isnull()) |
1590 | 1590 | draw_graphics_line(bitmap, addr, y + (im ? bsy : (bsy >> 1)), wd); |
trunk/src/mame/video/gtia.c
r241405 | r241406 | |
240 | 240 | |
241 | 241 | void gtia_device::device_reset() |
242 | 242 | { |
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); |
246 | 243 | memset(&m_r, 0, sizeof(m_r)); |
247 | 244 | memset(&m_h, 0, sizeof(m_h)); |
248 | 245 | memset(m_color_lookup, 0, sizeof(m_color_lookup)); |
249 | 246 | |
| 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 | |
250 | 253 | if (is_ntsc()) |
251 | 254 | m_r.pal = 0xff; |
252 | 255 | else |
r241405 | r241406 | |
265 | 268 | SETCOL_B(ILL, 0x3e); /* bright red */ |
266 | 269 | SETCOL_B(EOR, 0xff); /* yellow */ |
267 | 270 | |
268 | | m_lumpf1 = 0; |
269 | 271 | m_huepm0 = 0; |
270 | 272 | m_huepm1 = 0; |
271 | 273 | m_huepm2 = 0; |
trunk/src/osd/osdnet.c
r241405 | r241406 | |
105 | 105 | { |
106 | 106 | return netdev_list.count(); |
107 | 107 | } |
108 | | |
109 | | void 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
r241405 | r241406 | |
220 | 220 | # explicitly set the entry point for UNICODE builds |
221 | 221 | LDFLAGS += /ENTRY:wmainCRTStartup |
222 | 222 | |
223 | | ifdef MSVC_BUILD |
224 | | ifdef DEBUG |
225 | | LDFLAGS += /NODEFAULTLIB:LIBCMT |
226 | | endif |
227 | | endif |
228 | | |
229 | 223 | # add some VC++-specific defines |
230 | 224 | DEFS += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DXML_STATIC -DWIN32 |
231 | 225 | |
r241405 | r241406 | |
425 | 419 | endif |
426 | 420 | |
427 | 421 | #------------------------------------------------- |
428 | | # WinPCap |
429 | | #------------------------------------------------- |
430 | | INCPATH += -I$(SRC)/lib/winpcap |
431 | | |
432 | | #------------------------------------------------- |
433 | 422 | # rules for building the libaries |
434 | 423 | #------------------------------------------------- |
435 | 424 | |