Commit Graph

2742 Commits

Author SHA1 Message Date
Aaron Giles
9b7f0f499f
Eliminate remaining uses of auto_alloc and friends (#8210)
* Split off auto_alloc changes from deprecated branch.

* Make the keymap reader non-static so it can access the unique_ptr.

* Fix SDL input for real.
2021-06-22 09:58:05 +02:00
Vas Crabb
bfbe28cb05 osd/eigcc.h: Fix 32-bit gcc/clang builds. 2021-06-14 11:46:19 +10:00
Vas Crabb
73d97b7dc4 Added helpers for 64-bit count leading zeroes/ones. 2021-06-13 09:38:01 +10:00
Olivier Galibert
ef0d18e0bb floppy: Change the formats from an intrusive list to a vector 2021-05-27 09:18:17 +02:00
Vas Crabb
5fe20586ee srcclean for release 2021-05-23 17:33:52 +10:00
npwoods
f4d7c0aa62
-attach_window support for SDLMAME (#8070) 2021-05-20 10:09:00 -04:00
AJR
a1c914bef9 Fix crashes in Qt debugger caused by trying to select a nonexistent disassembly or memory view 2021-05-11 14:19:52 -04:00
arbee
6704819c1f Add -share_directory option. This sets a directory on the host system which emulated systems can directly access. [R. Belmont] 2021-05-08 16:13:43 -04:00
ksherlock
082803db49
osx/sdl - handle caps lock key up events via a frame callback instead of the sdl key up event (which is too fast) (#7972) 2021-04-28 12:39:39 -04:00
Vas Crabb
7118633dfd srcclean in preparation for branching release 2021-04-25 14:29:59 +10:00
Sandro Ronco
96247d322c -cpu/score: Added bittgl! opcode.
-debuggdbstub.cpp: add score7 registers map.
2021-04-24 23:46:48 +02:00
Olivier Galibert
9c8b72a5fe sound: Pulseaudio support 2021-04-16 14:49:16 +02:00
987123879113
3e33bd1bcb
Changed audio_latency valid range from 1-5 to 0-5 (#7916) 2021-04-01 23:12:10 +11:00
Aaron Giles
e16d3e98d9 Disable sleep when using -bench. 2021-03-31 17:08:28 -07:00
Vas Crabb
a860495f6c bgfx: Fixed crt-geom{,-deluxe} shader compilation and recompiled shaders. 2021-03-20 02:58:53 +11:00
cgwg
931f85ee27
bgfx: crt-geom and crt-geom-deluxe enhancements (#7872)
* Made spot size parameters adjustable also increased samples from 2 to 3 scanlines for crt-geom-deluxe.
* Made horizontal interpolation adjustable.
* bgfx crt-geom-deluxe: Made phosphor decay smoothly to zero at specified cutoff time.
* bgfx crt-geom-deluxe: Added lowpass filter.
2021-03-20 02:38:07 +11:00
Vas Crabb
4cf96da22c -A few incremental UI code improvements:
* Simplified message when toggling UI controls.
* Show actual configured UI toggle key, not misleading hard-coded text.
* Push window activated/deactivated events to UI manager.
* Simplified SDL window event handling code - events are pretty precise.

-Miscellaneous code cleanup.
2021-03-12 01:15:08 +11:00
Vas Crabb
a425bd5d90 srcclean in preparation for branching release 2021-02-21 16:08:12 +11:00
Robbbert
2441cc0f8d bgfx png: The message parameters were the wrong way around. 2021-02-21 16:01:03 +11:00
cgwg
92b2921754
bgfx: crt-geom and crt-geom-deluxe enhancements (#7766)
Added a "brightness boost" feature for the shadow mask that works by making the brightness ratio between bright and dark mask pixels closer to 1 for the brighter parts of the image.

Added clamping to zero so that underscanning produces a black border.

Added a "raster bloom" effect to crt-geom-deluxe that makes the image grow slightly when the average brightness of the screen is high, mimicking a common defect in CRTs.
2021-02-21 14:47:28 +11:00
nabetse
133c207dbf add m68000 to debuger gdbstub 2021-02-15 22:02:25 +01:00
AJR
bc0146c203 Eliminate ARRAY_LENGTH template in favor of C++17's std::size
* osdcomm.h: Move definition of EQUIVALENT_ARRAY to coretmpl.h

* sharc.cpp, gt64xxx.cpp, ym2413.cpp, gb_lcd.cpp, snes_ppu.cpp: Use STRUCT_MEMBER for save state registration

* gio/newport.cpp, megadrive/svp.cpp, nes_ctrl/bcbattle.cpp, arm7.cpp, tms9995.cpp, pckeybrd.cpp, sa1110.cpp, sa1111.cpp, jangou_blitter.cpp, vic4567.cpp: Use std::fill(_n) instead of memset

* emucore.h: Remove obsolete typedef
2021-02-14 11:05:57 -05:00
Aaron Giles
21f24c41ae #7711: lld seems to add a minimal symbol that the system libraries catch. Be smarter about ignoring that. 2021-02-06 01:24:27 -08:00
AJR
fa40bb8dfb render/bgfx: Use platform-specific path separator more consistently 2021-02-05 20:30:56 -05:00
AJR
f806cfd21c render/bgfx: Fix failure to load texture .png files when -artpath contains multiple directories 2021-02-03 17:45:37 -05:00
AJR
c47ed0112e coretmpl.h: Move lru_cache_map to separate header 2021-02-03 17:42:14 -05:00
Vas Crabb
8d04ca7d7d Debuger updates:
* Improved behaviour of bottom line in Qt and win32 debugger views.
* Ported memory tracking feature from Qt to win32 module.
2021-01-30 22:46:43 +11:00
Vas Crabb
86666f388e Bug fixes and usablility enhancements:
* Declare intent when requesting virtual memory (for NetBSD, 7712)
* Improve scrolling behaviour in Qt debugger (MT07795)
* Added prompts to input mapping menu to make it less intimidating
2021-01-29 00:51:28 +11:00
Stiletto
3153838929
Update "2020" text to "2021" (#7713)
Update "2020" text to "2021".
2021-01-28 00:11:17 -05:00
AJR
1ef9d6991b ui: Clean up slider callbacks 2021-01-27 19:25:18 -05:00
Vas Crabb
83c9637635 -Qt debugger updates:
* Added context menu with Copy Visible and Paste commands to debug views (partially addresses #6066).
* Made memory view last PC display a context menu item.
* Fixed crash on right-clicking a memory view showing something other than an address space.

-debugger: Fixed commas in dumpkbd output.
2021-01-28 02:59:43 +11:00
Vas Crabb
adc23f3f74 Goodbye 64 suffix on the main executable, it was nice knowing you.
If you want to build 64-bit and 32-bit in the same tree without them
stomping on each other, use SEPARATE_BIN=1 (you already need to do this
for TOOLS=1 anyway).
2021-01-26 15:37:11 +11:00
Vas Crabb
62d3408cc4 win32 debugger: Added context menu with Copy Visible and Paste commands to debug views (partially addresses #6066). 2021-01-26 02:51:54 +11:00
Vas Crabb
78f6ff34a5 srcclean in preparation for branching release 2021-01-24 13:33:07 +11:00
arbee
20b76c8019 eigccarm.h: fix unterminated #if [R. Belmont] 2021-01-23 17:38:27 -05:00
Vas Crabb
e713adea33 bgfx: Fixed overlapping register in lcd-grid shaders and compiled for Direct3D, SPIR-V, Metal, etc. 2021-01-23 15:25:33 +11:00
cgwg
42a2b0006b
bgfx: Added lcd-grid shader. (#7691)
Note that this is currently only compiled for GLSL.
2021-01-23 15:04:48 +11:00
Vas Crabb
205511eea7 -getaway.cpp: Fixed steering control.
* Works fine with an analog stick/wheel, difficult to steer on the
   slippery "dotted" surface with keyboard/D-pad.

-osd: Moved GCC intrinsics out of eminline.h so MAME_NOASM will take the
 pure C++ implementation with GCC (makes testing the fallback easier).

-Removed a bunch of [[maybe_unused]] that aren't actually needed.
2021-01-23 00:55:21 +11:00
Olivier Galibert
aa33ec1273 ATTR_UNUSED, do you welcome C++17 in your heart and mind? 2021-01-22 13:23:58 +01:00
Vas Crabb
af7c2e2d30 osd: Rearranged window title to put system name first 2021-01-22 00:30:40 +11:00
Vas Crabb
7cfe419ca8 -osd/windows: Minimise full-screen windows on losing focus (#2997).
-osd/modules/osdwindow.cpp: Clean up window title formatting.
 * Show data type model in window title.
 * Moved window title formatting to a single place.

-tools/chdman.cpp: Removed some unnecessary .c_str() calls.
2021-01-21 23:33:53 +11:00
RobertoFresca
35082e52b0 Fix compile. 2021-01-21 02:59:47 +01:00
AJR
91921618c2 Much more core std::string_view modernization
- Remove corestr.h from emu.h; update a few source files to not use it at all
- Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type
- Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string
- Remove the string-modifying version of zippath_parent
- Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char *
- Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only
- Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this)
- Change output_manager to use std::string_view for output name arguments
- Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now)
- Change miscellaneous other functions to accept std::string_view arguments
- Remove a few string accessor macros from romload.h
- Remove many unnecessary c_str() calls from logging/error messages
2021-01-20 18:06:15 -05:00
Vas Crabb
255d4e7787 osd: Make preprocessor usage a bit more consistent in inline utilties for PPC/ARM. 2021-01-18 01:54:37 +11:00
Vas Crabb
6e1bbe8be8 -osd: Clean up inline maths utilities.
* Removed inline assembly for operations compilers handle well.
* Added ARM and AArch64 implementation for a few operations.
* Added unsigned integer add with carry out operations.

-cpu/drccache.cpp: Detect whether RWX pages are supported.

-dynax.cpp: Improved a few hanafuda DIP switch descriptions.
2021-01-18 01:42:28 +11:00
Vas Crabb
4fd3a17070 util/zippath.cpp: Fix suffix for zip archives. 2021-01-08 04:10:10 +11:00
Vas Crabb
8228719f03 Tidy up loose ends:
* Fixed a couple of fixed-size buffers in Windows OSD code.
* Marked MAME as aware of long paths in Windows manifest.
* Made a cleaner, thread-safe API for getting volume names.
* Added compile-time option to disable recompiler W^X mode.
* NuBus image device current directory doesn't need to be pinned.
2021-01-06 19:09:16 +11:00
Justin Kerk
84733b68d8 Fix DRC build breakage under Emscripten. [Justin Kerk] 2021-01-06 01:55:14 +00:00
AJR
8a3c14c360 osdwindow.cpp: Make monitor code a little safer 2021-01-05 10:27:40 -05:00
Vas Crabb
4eca05fe67 cpu: Allow recompilers to work with W^X policy 2021-01-06 02:18:04 +11:00