Commit Graph

370 Commits

Author SHA1 Message Date
Wilbert Pol
c62ba64a50 commented out unused member; fixes clang build (nw) 2016-02-13 20:16:10 +01:00
dankan1890
9599b015a7 fixed crash clicking on the DATs icon in the toolbar if there is no info available. 2016-02-13 17:38:17 +01:00
dankan1890
ae6a55f075 Grouped display of DAT file information in a single view. (WIP) nw 2016-02-13 02:42:38 +01:00
dankan1890
335aedb3e6 Fixed UI crash. (nw) 2016-02-11 12:52:09 +01:00
dankan1890
5e5f2788d6 Rearranged some filters. nw 2016-02-11 00:26:12 +01:00
dankan1890
96f78891f9 menu: standard menu now correctly handle the double click of the mouse. nw 2016-02-10 22:39:45 +01:00
dankan1890
f37594a53a fixed wrong 'game' text. 2016-02-10 22:38:52 +01:00
dankan1890
cd05adafe0 ui: Removed the creation of cache file 'info_', and also removed 'Screen Type', '(no)Samples' and 'Stereo' filters. (TODO: pending to restore them in a proper manner). 2016-02-10 22:38:08 +01:00
dankan1890
186febc3dc dsplmenu: re-added opengl video item. nw 2016-02-10 22:27:02 +01:00
dankan1890
bc2ef66756 simpleselgame: The zeroing of the search does not require a reload. nw 2016-02-10 22:25:43 +01:00
Miodrag Milanović
b051abab1f Merge pull request #610 from motoschifo/master
Videosnaps patch (additional file to write: gamename.inp.timecode) [Michele Fochi]
2016-02-08 18:46:35 +01:00
Michele Fochi
f736cd5abc Added new options:
-[no]exit_after_playback (default=no)
 -[no]record_input (default=no)
Added new UI shortcut to save current timecode (default F12)
Translated variable names and comments to english language
2016-02-08 13:25:25 +01:00
dankan1890
68f167c886 ui: The video mode in the menu display options are now obtained directly from the settings. (nw) 2016-02-08 01:23:35 +01:00
Robbbert
7a4e38987f ui: fixed text in custom colours setup screen 2016-02-08 10:35:40 +11:00
Michele Fochi aka motoschifo
34bc216ef9 VideoSnaps patch
http://adb.arcadeitalia.net/videosnaps.php
2016-02-07 11:05:55 +01:00
dankan1890
2fda7e23f2 menu: fixed search path for snapshots. (nw) 2016-02-07 03:53:47 +01:00
dankan1890
e15dca747c datmenu.cpp: fixed a missed substitution from auto_alloc to global_alloc. 2016-02-07 03:32:47 +01:00
Miodrag Milanovic
1bc83295c7 added save to simple ui (nw) 2016-02-06 13:54:15 +01:00
Miodrag Milanovic
f80ff01891 MAME related settings are saved on request only (nw) 2016-02-06 13:47:21 +01:00
Miodrag Milanovic
65d9003144 fixed rest of ui.ini mame.ini read/write settings (nw) 2016-02-06 10:40:23 +01:00
Miodrag Milanovic
dbfcc63e2c fix my mistake in software selection (nw) 2016-02-06 09:27:51 +01:00
Miodrag Milanovic
6f3e86613d Save mame.ini options only if they are updated in UI (nw)
Not all are covered, will need to check rest of files, but not tonight
2016-02-05 20:47:53 +01:00
Miodrag Milanovic
6fb757d6a6 move some options to ui.ini (nw) 2016-02-05 15:17:51 +01:00
Miodrag Milanovic
d0162765cd Keep ui options separate from emulator ini file. (nw)
TODO: Need fixing saving of some core settings that could be changed by UI
2016-02-05 14:24:17 +01:00
Miodrag Milanovic
9a28da4f73 added UI parameter, option simple gives back old style start screen, features for configuration and in game stays same as with new (nw) 2016-02-05 08:53:00 +01:00
Justin Kerk
538fa63433 Allow dat files in the root by default, like the old days (nw) 2016-02-04 12:25:10 -08:00
hap
33937a4a4c ui: orange mousecursor regrew with mewUI merge, let's re-shrink it 2016-02-04 21:12:19 +01:00
Miodrag Milanovic
edfa314f1d put back select new game (nw) 2016-02-04 16:30:43 +01:00
Miodrag Milanovic
3ebf7e64fc fixed system dependent UI (nw) 2016-02-04 16:18:55 +01:00
Miodrag Milanovic
a95c4619c6 clear the rest of mewui mentioning (nw) 2016-02-04 15:36:33 +01:00
Miodrag Milanovic
024d67c14f removed UME filtering (nw) 2016-02-04 15:14:29 +01:00
Miodrag Milanovic
52d97f0dfa more mewui -> ui renames (nw) 2016-02-04 15:14:27 +01:00
Miodrag Milanovic
213283e430 some MEWUI to UI renames (nw) 2016-02-04 15:14:26 +01:00
Dankan1890
701df7fe9e Initial import of MEWUI to MAME [Dankan1890] 2016-02-04 15:14:24 +01:00
Victor Vasiliev
ccee9f7825 Initialize m_load_save_hold 2016-02-03 02:36:17 -05:00
Victor Vasiliev
f6331aaf65 Allow saved states to be bound to joystick buttons 2016-02-02 16:18:57 -05:00
Victor Vasiliev
c626466050 Do not read the load/save state filename while sequence is still pressed
Fixes the issue where, if the save state button was bound to something
that was a legal save state input, it would occasionally immediately
save the state onto the same button as "save state" input itself was
bound.
2016-02-02 16:18:57 -05:00
Victor Vasiliev
b11f39e7a0 Do not handle any UI inputs immediately after state load/save
Before this change, if you try to save state to a bound which already
does something as a UI button, it will save state there and then
immediately execute the bound action (sometimes it would not happen).
So, if you have state to P, with default button it would pause the game
immediately after saving state (except sometimes it would not).
2016-02-02 16:18:57 -05:00
AJR
d3eecba525 Software list entries can now supply slot option defaults
This feature is enabled when executing 'mame driver software'. After the specified software is found in the software list and attached to an appropriate image device, the software part's feature list is examined for any feature whose name is that of a slot device with _default appended. The feature's value field becomes the slot's default option, which overrides any driver-specified default and can be overridden by user-specified options.

No software lists have been updated to use this feature at the moment.
2016-01-30 22:49:08 -05:00
Miodrag Milanovic
42622cfe8e replace osd_lock with std::mutex [Miodrag Milanovic] 2016-01-30 20:43:50 +01:00
Miodrag Milanović
c38e2ab229 Merge pull request #589 from dankan1890/master
Small code cleanup
2016-01-29 07:54:30 +01:00
hap
c4a66568e7 make internal mousepointer(that big orange one) smaller and less jaggies 2016-01-29 01:17:12 +01:00
dankan1890
361d32d37f Small code cleanup:
- corealloc.h: added macro definition for global_alloc (nothrow) memory allocation.
- textbuf.cpp / wavwrite.cpp: removed pointless cast.
- debugcmd.cpp / luaengine.cpp / render.cpp: avoid strlen calls in a loop.
- diimage.cpp: simplified "device_image_interface::set_image_filename" function.
- miscmenu.cpp / selgame.h / video.cpp(h): replaced int with bool where applicable.
- ui.cpp: removed unused code.
2016-01-29 00:43:18 +01:00
Miodrag Milanovic
b1d6f6d63f Cleanups and version bump 2016-01-27 08:12:00 +01:00
AJR
d5ea912ddd Have sound_stream::input_name return the std::string it constructs 2016-01-24 16:28:11 -05:00
AJR
9b61eb0b6b Pass and return palette devices by reference, not as pointers
- Add screen_device::has_palette()
- Require device_gfx_interface::gfx() and palette() to access members
- Getters for atari_vad_device return devices as references, not pointers
2016-01-23 22:57:16 -05:00
angelosa
3b94f23dad Print messages for BTANBs, nw 2016-01-24 01:36:01 +01:00
Miodrag Milanovic
4e8e3066f8 reverting:
SHA-1: 1f90ceab07

* tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-20 21:42:13 +01:00
Miodrag Milanovic
7c9cd3feea Revert "rest of device parameters to std::string (nw)"
This reverts commit caba131d84.
2016-01-20 21:35:11 +01:00
Miodrag Milanovic
abb7f223b3 Revert "Fix for hang, emu_options::add_slot_options was changed, other things are just cleanup (nw)"
This reverts commit 841a55985e.
2016-01-20 21:32:11 +01:00
Miodrag Milanovic
841a55985e Fix for hang, emu_options::add_slot_options was changed, other things are just cleanup (nw) 2016-01-18 14:39:13 +01:00
Miodrag Milanovic
caba131d84 rest of device parameters to std::string (nw) 2016-01-16 20:05:32 +01:00
Miodrag Milanovic
1f90ceab07 tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-16 14:54:42 +01:00
Miodrag Milanovic
f21c96ce8a modernize rom_load_manager (nw) 2016-01-11 17:15:09 +01:00
Miodrag Milanovic
f0dc809ab8 image_manager modernized and move some things around (nw) 2016-01-11 14:59:24 +01:00
Miodrag Milanovic
3b922ba118 modernized crosshair_manager (nw) 2016-01-11 11:59:41 +01:00
Miodrag Milanović
36195292e3 Merge pull request #561 from ajrhacker/strings
Return std::string objects by value rather than pass by reference [ajrhacker]
2016-01-11 09:18:43 +01:00
AJR
115db95642 Return std::string objects by value rather than pass by reference
- strprintf is unaltered, but strformat now takes one fewer argument
- state_string_export still fills a buffer, but has been made const
- get_default_card_software now takes no arguments but returns a string
2016-01-10 16:36:18 -05:00
Miodrag Milanovic
30c10f6f79 modernized ui_input_manager (nw) 2016-01-10 20:32:30 +01:00
Miodrag Milanovic
9649088839 modernized bookkeeping manager (nw) 2016-01-10 13:19:57 +01:00
Miodrag Milanovic
ce75a5d682 removed memory tracking (nw) 2016-01-08 12:41:13 +01:00
Miodrag Milanovic
ae4661504c Just name not acronym (nw) 2015-12-31 11:00:47 +01:00
Miodrag Milanovic
1aa986d617 Revert "removing MESS brand and making MAME a name not acronym (nw)"
Too contraversial for now :)

This reverts commit 47bf03513e.
2015-12-31 10:51:15 +01:00
Miodrag Milanovic
47bf03513e removing MESS brand and making MAME a name not acronym (nw) 2015-12-31 10:31:00 +01:00
Brandon Munger
c66bc59508 Fix UI message for software selection 2015-12-28 19:10:31 -05:00
Miodrag Milanovic
94bc7eed38 cleanup (nw) 2015-12-25 12:09:50 +01:00
Miodrag Milanovic
174720a64d removed auto_bitmap_ind*_alloc and auto_bitmap_rgb32_alloc and replaced with std::unique_ptr (nw)
auto_alloc_array to unique_ptr
Added make_unique_clear
2015-12-17 11:10:30 +01:00
Miodrag Milanovic
379581fb36 macro removal INLINE -> static inline (nw) 2015-12-12 08:58:57 +01:00
Miodrag Milanovic
3414b0166e tagmap_t to std::unordered_map or std::unordered_set where applicable (nw) 2015-12-09 21:14:13 +01:00
Miodrag Milanovic
91605d3f4d clang-modernize part 1 (nw) 2015-12-03 18:17:25 +01:00
Miodrag Milanovic
92f81361d6 Initial conversion of core to C++14. Note that compilers are now limited to GCC 4.9.0 and up, Clang 3.4.0 and up, and VS2013 and up [Miodrag Milanovic] 2015-12-03 11:40:45 +01:00
Miodrag Milanovic
0825ce4f3b Cleanups and version bump 2015-11-25 08:22:24 +01:00
Miodrag Milanovic
61d05aacb8 Fixed some suggestions by ReSharper C++ (nw) 2015-11-14 19:05:18 +01:00
Miodrag Milanovic
19ff46c113 More cleanups (nw) 2015-11-11 18:07:13 +01:00
Miodrag Milanovic
d1dc775f9b Some cleanups and init fixes with help of ReSharper C++ (nw) 2015-11-11 16:31:18 +01:00
therealmogminer@gmail.com
7b5119e166 nw, more PVS-Studio fixes 2015-11-09 12:23:29 +01:00
Miodrag Milanovic
7c19aac60e Rename *.c -> *.cpp in our source (nw) 2015-11-08 12:56:12 +01:00
Miodrag Milanovic
41fea29de5 Relaxed emu.h a bit, should make compile a bit faster (nw) 2015-11-05 20:39:57 +01:00
Miodrag Milanovic
b6707c3bb5 Removed mongoose due to restricted license and webserver wip till code is restructured (nw) 2015-11-04 18:55:36 +01:00
Miodrag Milanovic
18188cb13b making logerror part of machine and device classes [Miodrag Milanovic]
display tag of device that logged message
2015-11-01 14:34:45 +01:00
Miodrag Milanovic
47f56372ee Cleanup and version bump 2015-10-28 08:06:12 +01:00
Miodrag Milanovic
8747487f9b Removed some unused variables (nw) 2015-10-27 19:21:46 +01:00
ImJezze
21b577483b Cleanup
- some renamings
- reverted one unwanted change in vector.fx
2015-10-26 19:49:17 +01:00
ImJezze
7018c3d294 Fixed Beam Width Options
- beam width min. and max. could not be set higher than 1.0 in UI
2015-10-25 23:11:54 +01:00
ImJezze
5f1f5d500a Experimental Dynamic Beam Width
- replace beam width by beam min. and beam max. width, this makes it
possible to create a linear dynamic beam width by the amount of
intensity of the beam
- added beam intensity weight, this adds an exponential factor to the
dynamic beam width (values greater than 0 will push larger intensities
more than smaller intensities)
- fixed displayed ratio of vector points (zero-length lines)
2015-10-25 20:54:00 +01:00
ImJezze
0ad0e5548e Fixed Vector Intensity and Flicker
- fixed vector intensity in vector.fx
- fixed vector flicker in vector.c
- change range of vector flicker option from 0 - 100 to 0.00 - 1.00
2015-10-25 11:02:52 +01:00
fulivi
898fc7b373 pty: seems ok (linux only) 2015-10-13 12:01:30 +02:00
therealmogminer@gmail.com
42c32445f1 nw - I do not know why this was there, but it seems dumb. 2015-08-19 12:56:15 +02:00
couriersud
fe8e6aca65 Added seconds() and attoseconds() to attotime and prefixed members with
m_. Rewrote code accessing members to use seconds() and attoseconds(). 

The changes were triggered by a test how gcc __int128_t would perform as
the internal representation. This test revealed that the current
implementation is still faster. (nw)
2015-08-15 17:56:10 +02:00
David Haywood
f2f250d9f2 change flags from GAME_ to MACHINE_
this better fits the drivers from MESS (which have always illogically used the GAME_ flags despite not being games) and also fits fine with arcade machines.
2015-07-29 14:36:49 +01:00
Cowering
f060f18a1e didn't merge last time (nw) 2015-07-14 08:07:59 -05:00
Cowering
674255fa0d Make 'game' and 'machine' match.
It makes no sense to say a CHD for this 'game' is incorrect
when using CHD images of HDs for a computer system in MESS (nw)
2015-07-08 23:37:56 -05:00
Cowering
a821b6c4be blame balrog for this :) (NW) 2015-07-08 14:05:56 -05:00
etabeta78
06cc1e484d audit.c: fixed a crash occurring when trying to mount
a CHD from the internal UI. [Fabio Priuli]

out of whatsnew: this is the correct fix which replaces the hacky workaround that I had submitted earlier today...
2015-06-03 00:37:29 +02:00
etabeta78
85535e83fe ui: when accessing the internal File Manager for a system
with available softlists, let the softlist item be highlighted by
default to make navigation faster [Fabio Priuli]
2015-06-02 11:32:11 +02:00
Robbbert
ff076425e7 ui: Fix corruption when a game status and a pop message appear at the same time. 2015-05-31 19:09:51 +10:00
couriersud
f10abf48d7 Another round of -Wextra -Wdouble-promotion fixes. (nw) 2015-05-20 21:24:59 +02:00
couriersud
39d1154e31 Another round of -Wextra -Wdouble-promotion fixes. (nw) 2015-05-20 01:42:51 +02:00
Miodrag Milanovic
e4b919213e lot more updated (nw) 2015-05-11 15:09:24 +02:00
Miodrag Milanovic
6d902a08bd Added dummy license headers for EMU section (nw) 2015-05-07 10:45:57 +02:00
Miodrag Milanovic
54f8b3ae5d moved all to std::string (nw) 2015-04-22 11:30:45 +02:00
Luca Bruno
0d7860c675 ui: avoid infinite loop when word-wrapping
This commit fixes an infinite loop in draw_text_full(),
happening when there is not enough space to draw even a single
a char before trying to word-wrap.

Signed-off-by: Luca Bruno <lucab@debian.org>
2015-04-21 21:49:42 +02:00
Miodrag Milanovic
7e1f926b94 more astring -> std::string (nw) 2015-04-19 15:06:07 +02:00
Miodrag Milanovic
71c4d9f304 removed bool conversion and implicit empty check (nw) 2015-04-19 12:08:52 +02:00
Miodrag Milanovic
3c3ee1d177 more conversions to std::string (nw) 2015-04-19 08:08:34 +02:00
Olivier Galibert
278cf84e55 Replace dynamic_array with std::vector [O. Galibert] 2015-04-14 19:58:17 +02:00
Miodrag Milanovic
2edee0b811 updated astring constructors to have just one string param, to be more like std::string (nw) 2015-04-13 12:25:21 +02:00
Miodrag Milanovic
87f705b984 string -> str rename due to future conflicts (nw) 2015-04-12 16:54:10 +02:00
Miodrag Milanovic
f2243d6020 string -> str part 1 (nw) 2015-04-12 15:36:44 +02:00
Miodrag Milanovic
7faba31b1b There is no implicit conversion to char* in std::string (nw) 2015-04-12 08:05:43 +02:00
Miodrag Milanovic
6b36c7ab22 cstr() - > c_str() as preparation for move to std::string (nw) 2015-04-11 15:26:58 +02:00
Vas Crabb
8a4145b48c Start removing the use of OSD macros outside OSD since core objects are shared between OSD builds 2015-04-01 13:51:10 +11:00
Olivier Galibert
1e09899b01 Merge pull request #148 from lucab/lucab/mame-lua/misc
luaengine: screen drawing fixes and initial docs
2015-03-24 10:14:32 +01:00
etabeta78
b94942bbfa made the mandatory image menu a bit more foolproof, by not allowing a reset
until a file has been selected. nw.
2015-03-23 07:29:40 +01:00
Luca Bruno
b1a0e0167d ui: use per-container pixel aspect (LUA draw_text bugfix)
Do not assume ui-container aspect when drawing on other containers.
This fixes LUA draw_text() in multi-screens games, where the font
aspect for each screen is wrongly computed on the aggregated target.

Signed-off-by: Luca Bruno <lucab@debian.org>
2015-03-16 11:42:46 +01:00
Oliver Stöneberg
22b90a3374 Revert "fix compile on MSVC 2012 (nw)"
This reverts commit 9afc7cdb5b.
2015-01-31 23:36:03 +01:00
couriersud
403b27d615 Merge branch 'master' of https://github.com/mamedev/mame.git 2015-01-30 21:10:42 +01:00
couriersud
ae4dddb9c1 Converted pcap and taptun network code into modules. (nw) 2015-01-30 21:10:32 +01:00
peterferrie
9afc7cdb5b fix compile on MSVC 2012 (nw) 2015-01-30 11:36:06 -08:00
Miodrag Milanovic
26e7a17b63 Cleanups and version bump 2015-01-28 09:20:10 +01:00
etabeta78
8bd63c8f81 ui: slight improvement on device input ordering + small cleanup. nw.
the ordering is still not optimal, imho, but at least if you launch SMS
with a lphaser and a paddle you don't get anymore their input mixed
in the menu. I will probably get back to this after next release.
2015-01-26 10:18:37 +01:00
etabeta78
f8096960a9 ui: added bios settings and keyboard/keypad inputs in the
device option menu. nw.
2015-01-20 14:34:59 +01:00
etabeta78
a1e9e0f228 ui: split a few more menu entries from miscmenu.c to separate files,
so to avoid having too much assorted stuff in miscmenu.c (now it is
down to a reasonable size). nw.
2015-01-20 10:31:02 +01:00
etabeta78
76edf0d3e6 ui: allow -str run to skip the file manager for systems with mandatory carts. nw. 2015-01-19 06:36:15 +01:00
etabeta78
8f07df5347 ui: improved File Manager so that attempts to launch softlist
entries without having the necessary files don't kill emulation
but simply display a message to the user. [Fabio Priuli]
2015-01-18 19:54:07 +01:00
etabeta78
2a565e93e6 ui: centralized game info and image info menus to a common
source file (creatively named ui/info.c). nw.
2015-01-18 15:23:53 +01:00
etabeta78
5bff739d72 ui: stop the game selector reporting systems with no roms as
missing files. [Fabio Priuli]

ui: when launching systems with mandatory carts, either from
command line or from the game selector, prompt the user with
the file manager menu so that he can mount a game where
needed, instead of killing emulation with an error. [Fabio Priuli]

out of whatsnew: it is now finally possible to launch nes and
snes and a2600 (and a few more) from the internal system
selector! also MESS doesn't error out anymore if you launch
such systems with no carts mounted from command line.

in short: emulation finally behaves as users typically expect!
2015-01-18 12:10:51 +01:00
couriersud
18d5da6b0b Changed osd_font to struct osd_font and removed unnecessary osdepend.h
includes.
2015-01-17 15:59:43 +01:00
etabeta78
840460c828 ui: fixed bug where slot options set via internal UI did not properly
create their sub-options. [Fabio Priuli]

out of whatsnew: to see the bug, try to manually set from the UI "com" in a PC ISA port or "multitap" in
the SMS driver in an old build, then reset (to apply changes) and re-enter the Slot Options menu just
to see that the sub-options (the com serial ports and the multitap joypads) are not configurable because
the core was not "informed" of their addition. no bug was present if the options were set from command
line or from QMC2, so it was not so easy to spot the issue...
2015-01-17 10:30:03 +01:00
etabeta78
09683be0d8 ui: added barebone menu for device-specific options. click on any slot
device option to see whether it is currently mounted or not, and which
additional options depend on the selected value. [Fabio Priuli]

out of whatsnew: eventually, mounted devices should be configurable
from this menu.
2015-01-16 21:46:01 +01:00
etabeta78
de52468837 ui: re-arranged File Manager a little bit, so that image devices are grouped
by owner, like Inputs / Dips / Configs menus. nw.
2015-01-16 17:14:36 +01:00
etabeta78
38883a6809 ui: fixed crash in general inputs menu. nw. 2015-01-14 22:03:43 +01:00
etabeta78
9c2d0ed4a3 ui: slightly reworked the File Manager initial menu to show which
device each media belongs to, so that if you change slot options
(e.g. adding further floppy drives to the emulated machine) you
can more easily spot which image is currently mounted in each
drive. Next, I plan to group media switches by owner, so to avoid
unnecessarily long menus. nw.
2015-01-14 07:55:37 +01:00
etabeta78
e5a474fa39 ui: split code for input mapping and slot option menus
from miscmenu. nw.
2015-01-14 07:48:38 +01:00
etabeta78
d40ca7e901 ui: simplified Image Information code and made it fully display for
systems with many image devices. [Fabio Priuli]

out of whatsnew: compare old and new with a system like smssdisp
to see what the "fully display" refers to ;-)
2015-01-12 22:46:22 +01:00
etabeta78
ba71152805 minor ui cleanup. nw. 2015-01-12 20:33:56 +01:00
etabeta78
98492665a1 ui: added "[Internal]" string to slot options that are not user-configurable
and fixed some internal options displayed as "scrollable". [Fabio Priuli]
2015-01-11 15:24:46 +01:00
etabeta78
344e5e89de let's try with a different approach that does not require to add a new macro to each slot
device. also, group inputs in UI based on the device they are attached to and display
their tag only once instead of at each input. nw.

p.s. a clean build is likely needed
2015-01-10 12:22:36 +01:00
etabeta78
451bd0731c ioport: added a PORT_DEVICE flag to identify inputs of any kind which are
connected to a device different from the root_device. these are the dynamical
inputs and it might be useful to be able to catch them without performing a
string comparison of the device tag against the root_device one. [Fabio Priuli]

ui: start displaying the device tag close to input names for the dynamical inputs
which use PORT_DEVICE, so to avoid some weird quirks in the input menus
when slot devices are modified. [Fabio Priuli]

out of whatsnew: for testing purposes I have added PORT_DEVICE only to serial inputs (bus/rs232)
and SMS controllers (bus/smsctrl). if you want to test these with slot devices of a driver you are more
familiar with, just add the macro to the inputs you want to test.

note: it is under discussion whether PORT_DEVICE is in fact useful, or if a string comparison for each
input port is not too costly in terms of performances and thus enough for our scopes... we will see the
result of the discussion, but in any case it will remain possible to match the sets of inputs with their
device :)
2015-01-09 23:01:40 +01:00
etabeta78
a2a0deb682 (MESS) ui: converted barcode reader menu to use devctrl
base class so to avoid the need of an intermediate menu
where to select the reader to act on. nw.
2015-01-08 12:26:16 +01:00
etabeta78
8d5d2fad35 (MESS) ui: fixed a small problem with tape control menu with
systems with multiple cassette drives attached. nw.
2015-01-08 12:23:50 +01:00
etabeta78
847585ad36 (MESS) ui: minor improvement to Tape Control menu, so that when
multiple cassettes are available it is clear which drive controls are
displayed (see e.g. sol20 or pet2001 with "-tape2 c2n" slot). also
cleaned up some function names and better described the usage of
the devctrl.h base class. nw.
2015-01-08 08:53:48 +01:00
etabeta78
3e848420b2 ui: Added "Reset" option to DipSwitch and ConfSettings menu, as well
as to the File Manager, for consistency with other menus where an hard
reset is of help [Fabio Priuli]
ui: Fixed DipLocation drawing so that it remains on screen also when
highlighting switches without locations [Fabio Priuli]

out of whatsnew: while at it, I have also cleaned up a bit the handling of
"Reset" in the slot and bios menus...
2015-01-07 15:02:14 +01:00
etabeta78
9bdcb9ce52 (MESS) ui: fixed for real the wrong confirmation menu being
prompted when leaving file creation. also, better backspace
support in the file creation menu (so that it work on Mac too).
nw.
2015-01-06 18:52:33 +01:00
etabeta78
f8f06c9a5c reverted previous change, since it does not interact well with the rest of the
creation code. a better fix is in progress :)
2015-01-06 17:17:36 +01:00
etabeta78
224878c426 (MESS) ui: don't ask confirmation when leaving the image creation menu
as if a new file was being created. nw.
2015-01-06 16:45:12 +01:00
Zoë Blade
44322992e5 Fix various typos
Squashed commit of the following:

commit 040fd169bfd6845b33d3f86fd66afb4a632605c6
Author: Zoë Blade <zoe@bytenoise.co.uk>
Date:   Sun Nov 30 22:24:30 2014 +0000

    Fix more typos in comments

commit 6121ae593008a574735427e047fdb7a16f4fa47f
Author: Zoë Blade <zoe@bytenoise.co.uk>
Date:   Sun Nov 30 22:20:37 2014 +0000

    Fix more typos

    Not all are in comments this time, but the vast majority are, and
    the rest are in printed text.  None are variable or constant names.

commit 84bc72573009bb46f5601f7257a7f7538f25cfc2
Author: Zoë Blade <zoe@bytenoise.co.uk>
Date:   Sun Nov 30 22:01:46 2014 +0000

    Fix some typos
2014-11-30 22:29:32 +00:00
Miodrag Milanovic
c93ed344fb Cleanups and version bump 2014-10-15 07:19:47 +00:00
Miodrag Milanovic
a4dd32afb6 Better fix for init order on software item load (nw) 2014-10-15 07:10:54 +00:00
Miodrag Milanovic
35dee95edf Fixed init order on software item load (nw) 2014-10-15 06:52:13 +00:00
Miodrag Milanovic
d14d6a8099 Do web serving in main thread (nw) 2014-09-08 07:51:14 +00:00
Fabio Priuli
747d998ca5 Reducing differences in File Manager options when entering from
softlist vs fullpath. nw.
2014-08-27 11:29:59 +00:00
Fabio Priuli
301d5336bd fixed crash in File Manager when selecting "Return to Previous Menu" from
the softlist menu. nw.
2014-08-27 10:37:17 +00:00
Fabio Priuli
8db701aeaf (MESS) ui.c: added shortcut commands for Tape Start and Tape Stop,
by default mapped to F2 and Shift+F2, respectively. This is not meant 
as a replacement for the internal Tape Control menu, but it shall make
simpler the usage of game tapes in home computers. Notice that 
REC/RWD/FWD have still to be pressed from the internal UI and that 
if you mount multiple cassettes in a driver with multiple tape drives 
only the first one will be controllable with these shortcuts. [Fabio Priuli]

The idea is that more complex actions (e.g. save you own BASIC program 
or copy programs from a tape to another, etc.) should be performed through
the internal menu, while people just aiming to play games can use the
shortcut. 
This commit requires probably a clean build.
2014-08-18 07:59:13 +00:00
Fabio Priuli
45224cfb12 (MESS) tapectrl.c: fixed bug where systems with multiple cassette drives (e.g. PET)
had no Tape Controls when no cassette was loaded in the first drive. [Fabio Priuli]
2014-08-18 07:50:28 +00:00
Scott Stone
dee629429b Fix for MT#5620: Crosshair: Selected graphic does not display properly from QMC2 2014-07-04 00:19:43 +00:00
Miodrag Milanovic
991212c069 -Created machine_manager as singleton class that contains (for now) one running machine [Miodrag Milanovic]
-Updated LUA engine to run in machine_manager instead of being initialized per machine
-Added "-console" option so emulator can be started with LUA enabled console
-Update LUA to version 5.2.3 
-Enabled SQLite3 to be compiled and added LUA module for it
2014-06-06 10:11:31 +00:00
Robbbert
d17e376dc6 In the File Manager, if the path is invalid, show the list of drives instead of an empty menu. 2014-05-29 11:15:11 +00:00
Miodrag Milanovic
f8f3d68187 -Made osd_interface base class for OSD and moved initialization for each subsystem in it as virtual calls. (nw)
-Moved midi handling in base class
-Cleaned running_machine of information of next machine
-All is cleaned after exiting of running_machine so debugger window is removed as well till next machine is started
-Made osdmini to compile
2014-04-25 07:31:27 +00:00
Miodrag Milanovic
78f658987f made neogeo card an image device (nw) 2014-04-17 13:16:05 +00:00
Miodrag Milanovic
cd93e416fe Created memcard as device and removed it from machine/generic (nw)
This should be image device instead but did not wish to change
behavior for now
2014-04-17 10:18:41 +00:00
Miodrag Milanovic
452df5037b reverting to classic ui due to lot of issues, as much as I hate reverting some else code (nw) 2014-04-17 06:27:03 +00:00
Curt Coder
7b75f417f7 Fixed compile. (nw) 2014-04-17 06:15:34 +00:00
Nathan Woods
f546afadef ScrLock no longer is a menu key; it will now enable/disable keyboard menu shortcuts 2014-04-16 11:57:13 +00:00
Robbbert
6a74b45b02 Fixed unpause. 2014-04-16 09:40:08 +00:00
smf-
72d93bb509 Added serial printer, renamed centronics printer to match. Standardised the configuration of rs232 devices. All serial devices are now connected using an rs232 port. [smf] 2014-04-16 07:53:39 +00:00
Nathan Woods
2365ce7efb Readding single step capability 2014-04-15 23:02:26 +00:00
Nathan Woods
ad0e62a58a Readding support for breaking into the debugger 2014-04-13 17:41:07 +00:00
Nathan Woods
fc3edd5eca First level menus are now considered ancestral for highlighting purposes 2014-04-13 14:06:45 +00:00
Nathan Woods
3a22c7ec12 Now highlighting menu items ancestral to the selection 2014-04-13 13:27:05 +00:00
Nathan Woods
b58021499c Fixed benign but incorrect usage of instance variable 2014-04-13 12:47:02 +00:00
Nathan Woods
b3e8407d7c I really got tired of looking at the text 'UI Select' and 'UI Cancel' in a
blood red dialog, especially given how easy this was to fix
2014-04-13 12:47:01 +00:00
R. Belmont
ef4747d94e Clang fix (nw) 2014-04-12 21:49:52 +00:00
Nathan Woods
24026e123e Merge of new menubar code 2014-04-12 20:52:03 +00:00
Alex W. Jackson
ed32a3321c Bump UI gfx viewer column limit up (nw) 2014-04-09 16:18:08 +00:00
Miodrag Milanovic
fec65e0b57 Cleanups and version bump 2014-04-07 06:04:18 +00:00
Curt Coder
a6cab66da5 Fixed build. (nw) 2014-04-06 10:49:11 +00:00
Alex W. Jackson
c3a166e962 device_gfx_interface [Alex Jackson]
Moved graphics decoding to a new device interface class: device_gfx_interface.
The gfxdecode device is now a device that simply inherits this interface and
does nothing else. Devices that draw tilemaps or sprites using gfx_elements
should in time be updated to use this interface rather than connect to a
machine-global gfxdecode device. Updated toaplan_scu.c as an example (also
fixed off-by-one sprite alignment in twincobr and rallybik while I was at it).

gfx_elements are normally created in interface_post_start(), making it
possible to dynamically create or modify the graphics decoding info during
device_start() if you need to. On the other hand, if you need the gfx_elements
during device_start(), you can directly call decode_gfx() to create them early.

This interface also provides a standard and init-order-safe way to connect to
a palette device (similarly to how device_video_interface helps devices
connect to a screen), so it's handy for any device that does palettized
drawing even if it doesn't use gfx_elements. Updated k053250.c as an example
of this usage.

gfxdecode info entries can now reference shared RAM regions by tag as well as
ROM regions, automatically handle endianness, and have some other new
capabilities. Updated nemesis.c and pgm.c to showcase the new features.

Removed validate_display() (it was just a commented out stub already) since
its only function, checking that drivers don't have an ind16 screen without
a palette, is now done by screen_device::device_validity_check().

Updated obsolete comments about GFXLAYOUT_RAW (cps1.c hasn't used raw gfx for
years, and "to save memory" is no longer a good reason to use it)
2014-04-05 14:59:36 +00:00
Nathan Woods
01d2320c95 Factored ui_menu_control_device_image into ui/imgcntrl.c 2014-04-05 14:11:56 +00:00
Miodrag Milanovic
dd1e28e513 Fix listsamples and one other potential problematic place, and fixed better devctrl (nw) 2014-04-03 08:56:14 +00:00
Alex W. Jackson
4b69b0281a Refactor UI graphics viewer to handle 'empty' gfx decoders [Alex Jackson] 2014-03-26 07:42:59 +00:00
Oliver Stöneberg
2e5ea37f65 removed mame_* aliases and just use core_* functions (nw) 2014-03-24 22:05:08 +00:00
Alex W. Jackson
49e580cc90 Fixed UI gfx viewer (again). Added device_start dependency on gfxdecode to all devices that create tilemaps, this should fix the recent tilemap-related crashes (nw) 2014-03-16 11:41:04 +00:00
Miodrag Milanovic
a66aff27d6 primary_screen -> first_screen() (nw) 2014-03-15 13:00:23 +00:00
Alex W. Jackson
f6153bc499 fix UI tilemap viewer (nw) 2014-03-15 08:03:02 +00:00
Alex W. Jackson
25db822531 Checkpoint 2:
gfxdecode devices must now be assigned a palette in MCFG. Added palette devices to several MESS drivers and devices to comply with this requirement. This palette is assigned as a default to the gfx_elements created by the device (but still not used for drawing yet, except in the UI graphics viewer)

Tilemaps now have a pointer to a palette device and use that palette for rgb32 drawing, rather than the palette of the screen or bitmap they are drawing to (since rgb32 screens don't have palettes now). When a tilemap is created, it takes its palette from the gfxdecode device it was created with, but you can change a tilemap's palette device with set_palette() at any time (doing this does not mark the tilemap dirty, since all tilemaps use indexed bitmaps internally)
2014-03-15 07:34:54 +00:00
Miodrag Milanovic
f14651f2db you can't count on same iterator you use and no need to cast iterator elements (nw) 2014-03-13 14:20:28 +00:00
Alex W. Jackson
601b9c4bed Fix UI gfx viewer crash with no palette (nw) 2014-03-12 06:10:35 +00:00
Aaron Giles
4ea9df02a1 Moved core template container classes up from emutempl.h to coretmpl.h:
[Aaron Giles]
 * these classes now no longer take a resource_pool; everything is
    managed globally -- this means that objects added to lists must be
    allocated with global_alloc
 * added new auto_pointer<> template which wraps a pointer and auto-frees
    it upon destruction; it also defaults to NULL so it doesn't need to
    be explicitly initialized
 * moved tagged_list template to tagmap.h

Redo of the low-level memory tracking system: [Aaron Giles]
 * moved low-level tracking out of emu\emualloc into lib\util\corealloc
    so it can be shared among all components and used by core libraries
 * global_alloc and friends no longer use a resource pool to track
    allocations; turns out this was a wholly redundant system that wasted
    a lot of memory
 * removed global_resource_pool entirely
 * added global_free_array to delete arrays allocated with 
    global_alloc_array
 * added tracking of object versus array allocation; we will now error
    if you use global_free on an array, or global_free_array on an object

Added new utility helper const_string_pool which can be used to 
efficiently accumulate strings that are not intended to be modified.
Used by updated makelist and software list code. [Aaron Giles]

Updated png2bdc and makelist tools to not leak memory and use more modern
techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles]

Deprecated auto_strdup and removed all uses by way of caller-managed 
astrings and the software list rewrite. [Aaron Giles]

Rewrote software list management: [Aaron Giles]
 * removed the notion of a software_list that is separate from a
    software_list_device; they are one and the same now
 * moved several functions into device_image_interface since they really
    didn't belong in the core software list class
 * lots of simplification as a result of the above changes

Additional notes (no whatsnew):

Moved definition of FPTR to osdcomm.h.

Some changes happened in the OSD code to fix issues, especially regarding
freeing arrays. SDL folks may need to fix up some of these.

The following devices still are using tokens and should be modernized
(I found them because they kept their token as void * and tried to
delete it, which you can't):

namco_52xx_device (mame/audio/namco52.c)
namco_54xx_device (mame/audio/namco54.c)
namco_06xx_device (mame/machine/namco06.c)
namco_50xx_device (mame/machine/namco50.c)
namco_51xx_device (mame/machine/namco51.c)
namco_53xx_device (mame/machine/namco53.c)
voodoo_device (emu/video/voodoo.c)
mos6581_device (emu/sound/mos6581.c)
aica_device (emu/sound/aica.c)
scsp_device (emu/sound/scsp.c)
dmadac_sound_device (emu/sound/dmadac.c)
s3c2440_device (emu/machine/s3c2440.c)
wd1770_device (emu/machine/wd17xx.c)
latch8_device (emu/machine/latch8.c)
duart68681_device (emu/machine/68681.c)
s3c2400_device (emu/machine/s3c2400.c)
s3c2410_device (emu/machine/s3c2410.c)
strataflash_device (mess/machine/strata.c)
hd63450_device (mess/machine/hd63450.c)
tap_990_device (mess/machine/ti99/990_tap.c)
omti8621_device (mess/machine/omti8621.c)
vdt911_device (mess/video/911_vdt.c)
apollo_graphics_15i (mess/video/apollo.c)
asr733_device (mess/video/733_asr.c)
2014-03-11 15:54:58 +00:00
Miodrag Milanovic
cb7cd21a8c Fix for tape control and bitbanger control in UI (nw) 2014-03-09 13:08:19 +00:00
Alex W. Jackson
b07d5e4e55 The UI graphics viewer can now display multiple palettes and multiple gfx decoders in games that have them [Alex Jackson] 2014-03-09 06:50:19 +00:00
Miodrag Milanovic
64ac8f6776 Huge update, palette is now device (nw)
note: Aaron please give more descriptive text for release log I have no more strength :)
2014-02-27 13:35:15 +00:00
Couriersud
6a06d7604f Revert changes committed by accident. 2014-02-26 18:58:07 +00:00
Couriersud
c32fba0da7 Minor cosmetic changes for netlist 2014-02-26 00:21:06 +00:00
Oliver Stöneberg
5278254236 rest of ATTR_PRINTF review (nw) 2014-02-25 12:25:33 +00:00
Nathan Woods
a2ff7cf249 Factored out quit/confirmquit logic into ui_manager::request_quit() 2014-02-23 20:28:32 +00:00
Aaron Giles
57cfaa163e Switched rgb_t to a class, replacing macros with methods. Mappings are
as follows:

   MAKE_RGB(r,g,b)     == rgb_t(r,g,b)
   MAKE_ARGB(a,r,g,b)  == rgb_t(a,r,g,b)
   RGB_ALPHA(data)     == data.a()
   RGB_RED(data)       == data.r()
   RGB_GREEN(data)     == data.g()
   RGB_BLUE(data)      == data.b()
   RGB_BLACK           == rgb_t::black
   RGB_WHITE           == rgb_t::white

Implicit conversions to/from UINT32 are built in as well as simple
addition, subtraction, and scaling (with clamping).

As a result of being a class, some stricter typing was needed in
a few places but overall not too much.
2014-02-19 06:07:32 +00:00
Aaron Giles
3e2995cbba Converted palette_t and palette_client to classes. General palette.c
cleanup.
2014-02-18 08:05:44 +00:00
Miodrag Milanovic
7cde79cd9c Created gfxdecode_device instead of using machine fixed gfxdecode [Miodrag Milanovic]
Updated all devices and drivers for using it.

out of whatsnew:
Note that it is made to work same as before, in some cases it can be more
logic to move gfxdevice into subdevice itself then to keep it in main driver.
2014-02-16 17:32:10 +00:00
Fabio Priuli
e2cf4f8b34 Added generic barcode reader emulation: the code accepts sequences of digits in
UPC-A, EAN-13 and EAN-8 format, stores them in both byte format and in pixel
format; it is up to the driver to implement the correct transfer protocol. [Fabio Priuli]

Added UI menu to enter barcodes via keyboard. It only gets activated if the running
machine has a barcode device. [Fabio Priuli]

out of whatsnew: The latter change was coordinated with Nathan, so it shall not
create problems with his UI reorganization ;)
2014-02-12 14:54:11 +00:00