Commit Graph

85683 Commits

Author SHA1 Message Date
Vas Crabb
b98fb7c98e Small batch of input refactoring:
emu/input.cpp: Fixed regression in display of some joystick inputs.

osd/interface: Split up interface classes into a few more files to
reduce where the input device interface class needs to be included.
Made OSD independent of concrete input_device class.

osd/modules/input, emu/inputdev.cpp, emu/ioport.cpp: Allow input devices
to provide tokens for controls without standard item types and
additional default input assignments.  Fixes issues assigning Yen and
Backslash on Japanese keyboards.

ui/textbox.cpp: Added a fixed-content text box menu class for future
use.

Got main.h out of emu.h as it’s only used in a very small number of
places, mostly for getting the application name.  Added eminline.h to
attotime.h as it's used without emu.h.  Cleaned up forward declarations
in emufwd.h a little.
2023-02-05 05:01:40 +11:00
cracyc
519554c846 i386: nm fault if ts is set 2023-02-04 10:26:00 -06:00
cracyc
45e3f79a90 i386: don't change x87 stack pointer until after memory access in case of a page fault 2023-02-04 10:24:38 -06:00
Vas Crabb
0b67aa20c7 Miscellaneous fixup:
* video/i82730.cpp: Fixed misguided "fix" that broke category-based
  logging.
* bus/macpds, bus/nubus: Eliminated use of simple_list.
* konami/k053246_k053247_k055673.cpp: Moved assert to work around
  Konami GX games failing to start - the code is still dodgy.
2023-02-04 18:40:59 +11:00
Peter Ferrie
74b6c17f18 another Clang fix [nw] 2023-02-03 19:45:10 -08:00
AJR
1f93af5daf RTC interface updates
- dp8573, mc146818, mm58274c, rtc65271, s3520cf, smpc, timekpr: Use device_rtc_interface to acquire base time
- device_rtc_interface: Add machine configuration option for synchronizing to UTC instead of local time (was previously only an option for mc146818, and always enabled for dp8573)
- mc146818: Eliminate the set_binary_time configuration parameter
- mm58274c: Correct operator precedence in calculating m_clk_set; allow disabling side effects of status read
2023-02-03 22:10:35 -05:00
Peter Ferrie
995d20422c fix Clang compile [nw] 2023-02-03 18:43:43 -08:00
AJR
5b2136c8cf mc88200.cpp: More clang fixes 2023-02-03 20:14:08 -05:00
Vas Crabb
394861a3a5 bus/vme/vme_mvme327a.cpp: Fixed clang build (unused lambda capture). 2023-02-04 05:13:35 +11:00
Vas Crabb
4922be2279 osd/modules/render/draw13.cpp: Fixed leaked/double freed texture data.
The texture malloc's its own storage if the copy info doesn't have the
passthrough flag set - the test was reversed.
2023-02-04 05:06:40 +11:00
Vas Crabb
78f0fdbf69 osd/render/draw13.cpp: Got rid of a simple_list. 2023-02-04 04:55:12 +11:00
Peter Ferrie
c2b96b44ea ap_dsk35.cpp: enable 1.44Mb dc42 images [Peter Ferrie] 2023-02-03 09:08:04 -08:00
hap
e03c0cb4a0 New working clones
------------------
Tekken 3 (World, TET2/VER.C) [Guru, Heihachi_73]
2023-02-03 18:05:24 +01:00
Vas Crabb
f3850d1e3c Cleaned up some recent changes. 2023-02-04 03:25:01 +11:00
Patrick Mackinlay
7e5b151633 mc88200: appease clang 2023-02-03 17:09:36 +07:00
Patrick Mackinlay
0e68b27486 sys1121: add some new motorola cards 2023-02-03 14:46:55 +07:00
Patrick Mackinlay
1d39af0599 New systems marked not working
------------------------------
Motorola MVME327A [Bitsavers]
2023-02-03 14:44:53 +07:00
Patrick Mackinlay
e914e421c7 New systems marked not working
------------------------------
Motorola MVME181 [Plamen Mihaylov]
2023-02-03 14:37:49 +07:00
Patrick Mackinlay
2ac99146cd mvme180: add cmmu 2023-02-03 14:28:38 +07:00
Patrick Mackinlay
1f2ae2d47a m88000: add basic cmmu support 2023-02-03 14:23:49 +07:00
Patrick Mackinlay
bc802bb8ac mc88200: new device 2023-02-03 14:15:19 +07:00
Vas Crabb
dd355e4d68 docs: Added an introduction to the input system for developers.
emu/ioport.cpp: Removed a long-outdated comment that is now rather
misleading.
2023-02-03 18:02:45 +11:00
Vas Crabb
b9c878e627 BGFX: Check window manager type returned by SDL. 2023-02-03 16:17:37 +11:00
Patrick Mackinlay
0158cdeab6 ncr53c90: better guess at sequence logic for macqd700 2023-02-03 12:02:06 +07:00
AJR
11d04180ca upd7810.cpp: Fix clang error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] 2023-02-02 22:52:18 -05:00
hap
28fce32e87 New working clones
------------------
Tekken 2 (US, TES3/VER.A) [Guru]
2023-02-02 23:13:39 +01:00
Lord-Nightmare
c056522aab Fix upd7810 serial input failing to detect the start bit of the next byte if there are zero serial idle state bits sent between the serial bytes to the upd7810 receive line. [Lord Nightmare] 2023-02-02 16:36:23 -05:00
Vas Crabb
43e30203bd docs: Clarified documentation of input options.
Made explanation of interaction between device class enable options
(-[no]mouse, -[no]joystick, -[no]lightgun) and automatic device class
enable options (-*_device) more explicit.  Also documented that
-mouse_device mouse is set by default in both relevant places.

Provided a better explanation of the purpose of -dual_lightgun.
2023-02-03 04:27:40 +11:00
Ivan Vangelista
282eedc7f5 nichibutsu/hyhoo.cpp, nichibutsu/pastleg.cpp: consolidated drivers in single files 2023-02-02 18:20:03 +01:00
Vas Crabb
9baa810ef2 tools/ldresample.cpp: Don't try to allocate a 1MB object on the stack (fixed GitHub #7722). 2023-02-03 03:19:53 +11:00
Vas Crabb
26833301af osd: Don't swallow text input with -keyboardprovider win32 (addresses GitHub #7911). 2023-02-03 02:59:18 +11:00
Vas Crabb
be9cb8161a nichibutsu/terracre.cpp: Labelled amazon debug controls (see GitHub #9697). [atrac17, Vas Crabb] 2023-02-03 02:03:54 +11:00
negunma
83d2dc4b8c
sanritsu/jantotsu.cpp : fix SN76489A clock (#10863)
* sanritsu/jantotsu.cpp : Correct SN76489A clocks to match reference video
2023-02-02 09:27:31 -05:00
Vas Crabb
d35408d628 render/drawd3d.cpp: Fixed prescaling without HLSL - WRL COM pointer has some surprises.
Also added some additional error checking.
2023-02-02 18:30:29 +11:00
hap
e2691b5e13 Systems promoted to working
---------------------------
Computer Othello [hap]
2023-02-01 23:59:33 +01:00
hap
dbaf7b376d cothello: add coin handling and sound 2023-02-01 23:31:48 +01:00
hap
acc7d534af cothello: add buttons 2023-02-01 20:07:25 +01:00
hap
9fcd185ad2 cothello: add notes 2023-02-01 19:31:25 +01:00
Vas Crabb
6ff51387fa bgfx: Refined configuration handling:
* Sort screen chains by none, default, then collation order (rather than
  whatever order the filesystem yields).
* Correctly persist settings across fullscreen toggle when explicit
  screen chains are configured.
* If chains are specified for a single window only, apply them to all
  windows.
* Treat empty string for screen chain as "default" rather than crashing.
* Changed default setting for bgfx_screen_chains to an empty string so
  chain selection will be saved/restored per system with mame.ini file
  created by -cc with no other settings.
2023-02-02 05:28:07 +11:00
David Haywood
069b78526a
misc/discoboy.cpp: Added clone DJ Girl (#10865)
New working clones
-----------
DJ Girl (Promat license) [Buenrip, Recreativas.org]
2023-02-02 05:25:41 +11:00
Ivan Vangelista
a6592163c3 - vsystem/crshrace.cpp, vsystem/f1gp.cpp, vsystem/taotaido.cpp: consolidated drivers in single files
- mame/*: further updated #ifndef guards to the current tree structure
2023-02-01 18:00:33 +01:00
Vas Crabb
3a7971b93f osd/windows/window.cpp: Allow BGFX to bounce cleanly when toggling fullscreen on Windows with multiple output screens/windows. 2023-02-02 03:41:15 +11:00
Vas Crabb
f408dd83e2 osd: Fixed BGFX crash on toggling fullscreen on Linux.
Also fixed draw13.cpp upsetting older versions of clang.
2023-02-02 03:23:36 +11:00
hap
942d07080a New working systems
-------------------
Saturn: Space Fighter 3D [Dillweed, SNESNESCUBE64]
2023-02-01 15:56:31 +01:00
Vas Crabb
4a81bdb64a Updated Chinese UI translations. [YuiFAN] 2023-02-02 01:06:19 +11:00
Vas Crabb
47aa6fd60d render/bgfx: Fixed texture object lifecycle issues. 2023-02-02 00:43:13 +11:00
hap
71aaf57ca8 New systems marked not working
------------------------------
Computer Othello [hap, Dillweed, SNESNESCUBE64]
2023-02-01 13:28:05 +01:00
Patrick Mackinlay
7825a857f8 softfloat: de-conflict include guards 2023-02-01 14:25:59 +07:00
Patrick Mackinlay
2e0798e064 font_sdl: better fix for variable-length array 2023-02-01 13:30:24 +07:00
Patrick Mackinlay
7cf123e770 font_sdl: avoid variable-length array 2023-02-01 13:19:55 +07:00