Commit Graph

359 Commits

Author SHA1 Message Date
Vas Crabb
7e37c1ff8c docs: Updated documentation on compiling MAME.
Updated instructions for building subsets of MAME using the SOURCES
option.

Added descriptions for several more "useful" settings.

Bumped documentation version as the build system changes are not in
0.245.
2022-07-24 13:17:17 +10:00
Vas Crabb
b80b4066bf osd/sdl: Removed keyboard/mouse/joystick device mapping options.
The keyboard and mouse device mapping options did nothing at all, mostly
because of lack of support for separating inputs from multiple devices.

The joystick options were useless when you have two of the same kind of
controller, and you can achieve the same thing with controller
configuration files.
2022-07-15 15:16:33 +10:00
Vas Crabb
4d835afaa0 docs: Fixed another missing word. [Robbbert] 2022-07-01 18:17:25 +10:00
Vas Crabb
8b33a4c56d docs: I accidentally a word on the internet (fixed missing word in Visual Studio compiling notes). 2022-07-01 18:10:15 +10:00
Vas Crabb
8d4bbaddd4 docs: Added notes about issues building MAME with Visual Studio 2022-07-01 17:55:49 +10:00
Vas Crabb
8c4a95d586 docs: Updated data plugin documentation. 2022-06-25 06:18:18 +10:00
Vas Crabb
74fe6e9d5c -Got rid of some legacy MESS support glue.
* Got rid of the special-casing for the "mess" subtarget name.
* Got rid of the MESS-specific Windows resources, emuator info source
  and man page.
* Added subtarget name to the internal name and original name in Windows
  resources.

-ui: Put the system-specific items on the input settings menu together,
 and fixed the crosshair visibility settings.
2022-06-13 16:53:23 +10:00
Vas Crabb
f47f9c3db3
ui, docs: Added menus to fill a couple of gaps, improved consistency. (#9915)
Added menus for controlling toggle inputs, and showing recognised input
devices and control state.  Moved input menu options off main menu to a
submenu, as there are a lot of them now.

Moved menu heading drawing into base class, added headings to more
menus, and made headings more consistent with the menu items used to
reach them.  Also made terminology more consistent.

Changed the default names for buttons and hat switches/D-pads to use
1-based numbering.  DirectInput still returns 0-based button numbers for
some devices.

Removed local copy of MinGW xaudio2.h as it’s now included in the MSYS2
package.  Also fixed building the DirectSound sound output module with
the SDL OSD on Windows - the Windows headers are sensitive to include
order.

Started adding documentation for menus, to hopefully help people find
menus they remember seeing but can't recall how to access.

For translators, this makes terminology more consistent.  In particular:
* "Settings" is preferred over "configuration" in a number of places, as
  the latter can be construed as referring specifically to settings
  stored in .cfg files in the cfg_directory folder.  Also, references to
  saving machine configuration could be interpreted as relating to the
  settings on the "Machine Configuration" menu.
* The controls on host input devices (e.g. keys, buttons, joystick axes)
  are referred to as "controls", while emulated inputs are referred to
  as "inputs".
* The menus for assigning host controls to emulated inputs are called
  "input assignments" menus to distinguish them from other input
  settings menus.
* Combinations of controls that can be assigned to emulated inputs are
  referred to as "combinations" rather than "sequences".
* The potentially confusing term "ROM set" has been removed altogether.
  Use "short name" to refer to a device or system's identifier.
* "System" is used in almost places to refer to a complete, runnable
  system rather than "Machine".
* "Driver" is now only used to refer to source files where systems or
  devices are defined - it is no longer used to refer to individual
  systems.
* A few more menus have message context for the messages.  This makes it
  a bit easier to guess where the messages are used.  It also means you
  can use different translations in different places if necessary (e.g.
  if the same English text should be translated differently as an item
  in one menu and as a heading in another).
2022-06-11 21:47:19 +10:00
AJR
55f72a2a83 docs/source/debugger/execution.rst: Document gbf, gbt and gni commands 2022-05-28 18:01:17 -04:00
Vas Crabb
bcf77373a5 Bump version to 0.244 2022-05-24 14:32:30 +10:00
Vas Crabb
ffab5b98fa
ui/viewgfx.cpp: Added ability to restrict tiles to integer scale factors. (#9783)
Also encapsulated things a bit more and made the UI manager hold onto the storage rather than keeping it in file statics.
2022-05-20 18:26:14 +10:00
tedgreen99
352a505325
Add debugger time command to docs (#9735) 2022-05-10 16:45:26 -04:00
Vas Crabb
6ff40e09bd Micscellaneous cleanup/fixes:
machine/z80scc.cpp: Fixed a cast-to-bool that broke detection of changes
to one register bit.

formats/fsmeta.cpp: Use visitors with variants where it makes sense.

docs: Updated minimum required SDL version to 2.0.6 for all targets,
added note that Python 3 is included with Xcode and updated instructions
for downloading stand-alone Python 3 for macOS.

ksys573.cpp: Don't create an insane number of textures for fghtmn and
pnchman internal artwork.

Tidied another batch of slot machine layouts.
2022-04-30 06:42:09 +10:00
Vas Crabb
99af2df00f Bumped version to 0.243 2022-04-28 11:47:26 +10:00
Vas Crabb
e8166b5274 Bump version to 0.242 2022-04-01 01:07:51 +11:00
0kmg
21f0d58597
docs: Fixed a copy/paste typo in the Technical Specifications. (#9452) 2022-03-22 18:31:18 +11:00
Vas Crabb
394e5f18b6 Fixed some debugger memory view annoyances and cleaned up Lua bindings.
Made the debugger memory view not depend on isprint which is affected by
the global locale.  Assume the OSD will display as ISO-8869-1 and
replace problematic printable characters.

Started changing Lua function bindings to use set_function to avoid
potential issues related to ThePhD/sol2#608, and worked out what was
causing problems with symbol table read_memory/write_memory.  (They
aren't really essential - you can do the same thing with the address
space object itself, but they're easier to parameterise.)
2022-03-16 04:13:18 +11:00
Vas Crabb
422185fe55 docs: Added page describing how MAME searches for media.
Also made error messages for missing CHDs and missing files for software
parts using the image file loader show search paths, and changed the
(poorly named) bitbanger device to use the image file loader rather than
the ROM loader for software items.
2022-03-10 02:55:40 +11:00
hap
590c0383fe New working machines
--------------------
TC7: Air Traffic Control [hap, Sean Riddle]
2022-03-05 20:20:57 +01:00
Vas Crabb
05f681d36f emu/devcb.h: Cleaned up a little using C++17 type traits helpers.
Also made Lua I/O port field sensitivity nil for digital fields and put
in some more const.
2022-02-28 07:10:42 +11:00
feos
300206e308
Lua engine: Make setting analog I/O port field values user-friendly. (#9322)
Exposed minimum/maximum values for analog fields. together with defvalue, they can be used to check range of values and neutral position.

Previously you had to send a normalised value between -65535 and 65535 which would be scaled depending on machine specifics.  You could read the scaled value from the port, but you couldn't send scaled values in.  This allows scripts to set scaled values as seen by the machine.
2022-02-28 02:12:25 +11:00
hap
8b530b872d rendlay: remove led8seg_gts1 2022-02-26 18:40:59 +01:00
hap
90f14d0780 remove vestiges of artwork dotmatrix element 2022-02-26 12:08:45 +01:00
hap
289f9461f4 Revert "rendlay: add optional alpha attribute to digit elements"
This reverts commit d196d072ff.
2022-02-26 12:05:21 +01:00
0kmg
cc7a94ac2d
docs: Fixed a couple errors in the Technical Specifications. (#9340)
These seemed like copy paste errors in their contexts.
2022-02-26 18:56:24 +11:00
hap
d196d072ff rendlay: add optional alpha attribute to digit elements 2022-02-25 19:29:32 +01:00
Vas Crabb
31f001e501 Bump version to 0.241 2022-02-23 01:55:13 +11:00
Vas Crabb
4684eaa4d6 Cleanup:
* bus/nes/multigame.cpp: Got rid of a device type comparison.
* Fixed a couple of errors in debugger documentation.
* Reduced redundancy in more slot machine layouts.
2022-02-13 07:18:36 +11:00
Vas Crabb
a185091855
Addressed some Lua scripting pitfalls. (#9294)
Addressed pure virtual function call crash on end of emulation session
if you haven't explicitly removed all address space taps, memory
corruption on end of emulation session if you haven't explicitly removed
all address space change notifiers, and symbol being garbage-collected
out from under you while you have parsed expressions or other symbol
tables that depend on them.

Removed the copy constructor for parsed expressions as the underlying
C++ copy constructor appears to be broken, and simplified symbol table
constructors.  Also made symbol table add methods return the new entry
to avoid the need for an extra lookup.

Fixed breakpoint/watchpoint objects being inappropriately copied into
the tables returned by bplist() and wplist(), allowing the enabled
property to be modifiable for breakpoint and watchpoint objects in Lua.

Fixed drivers and devices causing a new memory pass-through handler to
be allocated on each soft reset, and fixed multiple instances of taps
being installed in the event the machine is reset before the tap is
removed.

Added classes for managing broadcast subscriptions, and adapted address
spaces to use this for change notifications.
2022-02-12 04:10:39 +11:00
Vas Crabb
e1a6a41234 frontend: Exposed memory pass-through handlers (address space taps) to Lua. 2022-02-10 02:06:42 +11:00
dch42
d9ab2fc0aa
chdman.1: Fixed typo. (#9255) 2022-02-07 00:47:30 +11:00
Vas Crabb
cb16512392 Clean up various loose ends:
frontend: Exposed debug symbol tables and parsed expressions to Lua
(these can be used when the debugger is not active).  Also made it
simpler to walk input types.

imagedev/bitbngr.cpp: Added software list loader support (used by
sitcom).

sitcom.cpp: Replaced bankdev with a memory view.  Also added a bar graph
for the timer DAC output, and made the DL1414 displays squarer in the
layout like they are in real life.  They still don't look right because
the internal segment drawing code doen't draw the segments the right
width.

docs: Fixed broken links and added missing links in command line options
index.  Also removed documentation for an option that no longer exists
and fixed some inconsistent terminology.

Separated includes by module in various drivers.
2022-02-03 09:00:23 +11:00
Vas Crabb
149e9b0cac Bumped dates to 2022, bumped docs version to 0.240, fixed some license files that had somehow been screwed up, cleaned up some metadata. 2022-01-29 00:45:52 +11:00
Vas Crabb
3184beda90 docs: List MSYS2 packages required to build PDF documentation on Windows now that TeX Live is available. 2022-01-12 05:33:59 +11:00
Justin Kerk
3fd7f8ac57 Fix build with newer versions of Emscripten; minimum supported version is now 2.0.25. 2021-12-23 02:13:53 +00:00
Firehawke
48c2620e3e
Refactor html docs build process to use new template and env variable 2021-12-04 15:31:12 -07:00
Olivier Galibert
8027428e4d Fun with flags: Allows handlers to have user-defined flags set on
them, which can them be picked up on access with the
{read,write}_*_flags variants of the accessors.  Example use with the
i960 and its burstable rom/ram.
2021-11-28 17:51:46 +01:00
Firehawke
17b9b96af3
docs: Implemented download links in docs theme. (#8887)
Modified the RTD theme to add PDF and EPUB download links in the left pane.
2021-11-28 00:19:14 +11:00
Vas Crabb
5668590fcb -frontend: Fixed crashes switching between favourites and other filters.
* Also made the system and software selection menus a bit less eager to
  reselect the first item.

-docs: Bumped documentation version to 0.238.
2021-11-23 11:19:29 +11:00
Vas Crabb
5afce6cfab emu/render.cpp, emu/rendlay.cpp: Added scroll support for all elements. 2021-11-18 10:34:38 +11:00
Vas Crabb
014eb6369b input: Clarify docuemntation and a comment. 2021-11-06 14:11:49 +11:00
Vas Crabb
270276c4d3 -Enabled complex combinations for analog axes:
* Made it possible to add digital controls to axis settings as enables.
* Mix multiple analog controls assigned to an axis setting.
* Added a "reverse" modifier for analog controls (useful with mixing).
* Fixed an issue assigning mouse axes using multiple mouse-like devices
  with -nomultimouse.

-frontend: More cleanup:

* Got rid of some abuse of "special main menus".
* Added a helper class for auto-pause menus that don't spawn submenus.
* Got rid of the fake menu that schedules an exit on the first frame.
* Turned the confirm quit prompt into a menu, eliminated one more
  special-cased event loop.
* Fixed the confirm quit prompt resuming if you return to emulation if
  you weren't paused to begin with.

-bus/centronics: Fixed conflicting DIP locations, reversed order and
 inverted polarity for Epson printers.

* Also added the LX-810 (without L suffix) DIP switches for reference -
  we don't have a device for this printer yet.
2021-11-06 13:52:48 +11:00
Vas Crabb
07e55935cf plugins: Rewrote timer plugin fixing multiple issues.
Added emulated time recording as well as wall clock time.

Fixed recording time for multiple software items per system.  An
incorrect constraint on the database table meant that time was only
being recorded for a single software item per system.

Detect the "empty" driver so the time spent at the selection menu isn't
recorded (you'd get multiple entries for this due to the way options
leak when returning to the system selection menu).

Included schema migration code to update existing timer plugin
databases.  Also replaced some unnecessary floating point code with
integer maths, added log messages, and made the plugin unload unload its
database access code during emulation.

Changed other plugins' use of paths with trailing slashes as this causes
stat to fail on Windows.
2021-11-06 05:20:59 +11:00
Vas Crabb
18a6113655 Two small fixes (bad menu flags in cheat plugin, copy/paste in docs). 2021-11-04 11:41:46 +11:00
AJR
e44d51c21f luareference.rst: Clarify contract of as_hz, as_khz and as_mhz 2021-11-03 17:24:30 -04:00
Vas Crabb
13612bbe0f -emu/ioport.cpp: Fixed some default setting handling issues.
* Issues were unlikely to actually manifest unless you use controller
  configuration files to change specific system input defaults.

-src/emu/output.h: Added size accessor to multi-element output finder.

* std::size will work on the top rank of an outut finder now.  Sorry for
  hitting emu.h again so soon.

-lua: Exposed a couple more input related things.

* Exposed constructor and a few methods on input_seq required for
  scripts to properly clear assignments or restore default settings.
* Exposed ioport_manager::set_type_seq which is required to configure
  general input assignments properly.
* Removed unnecessary use of sol::overload in favour of optional
  parameters.
* Updated documentation and also fixed a few errors.

-docs: Added description for axis setting assignments.
2021-11-04 03:11:29 +11:00
Vas Crabb
d29287e092 -emu/ioport.cpp: Made default behaviour better.
* If an input is configured to some combination of controls that are not
  present at all, ignore the setting altogether for the session.
* Fixed relative axes with PORT_RESET not responding to absolute
  controls (MT07685).
* Fixed relative axes not responding to an absolute control if the value
  doesn’t change every frame (eg. holding a stick against the stop).
* Changed the scaling for absolute controls assigned to relative axes to
  make defaults more sane (e.g. arkanoid or spdheat with a joystick).

-frontend: Fixed some localisation issues in Analog Controls menu.

-docs: Added documentation on assigning inputs.
2021-11-03 19:41:40 +11:00
Vas Crabb
2d220c7ba8 Fixed Windows build as well - default input overrides in OSD modules are annoying. 2021-11-02 16:08:24 +11:00
Vas Crabb
d775a2731d plugins: Moved the timecode recording functionality to a plugin. 2021-11-02 15:31:03 +11:00
Vas Crabb
e4c0f2ddac docs: Fix an error in the Lua reference that I copy/pasted without noticing. 2021-11-02 08:22:09 +11:00