summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ci: include cstdint in osdlib.h Robbbert2024-05-091-0/+1
|
* Merge remote-tracking branch 'upstream/master' Robbbert2022-05-311-116/+116
|\ | | | | | | | | # Conflicts: # src/emu/emuopts.cpp
| * util/options.h: Removed legacy OPTION_* option type constants. (#9851) npwoods2022-05-301-116/+116
|/ | | These constants were polluting the global namespace.
* -bgfx: Added default LUT PNG, fixes LUT-effect crash. Fixed external texture ↵ MooglyGuy2022-03-121-1/+1
| | | | loading, restoring HQx filters. [Ryan Holtz] (#9401)
* Removed extra semicolons after function bodies in remaining headers. (#9277) 0kmg2022-02-071-1/+1
|
* Remove OSD_UWP from rest of code Miodrag Milanovic2021-10-262-16/+0
|
* Remove uwp specific sources Miodrag Milanovic2021-10-262-209/+0
|
* Updated help text for bgfx_backend Robbbert2021-08-131-1/+1
|
* sound: Pulseaudio support Olivier Galibert2021-04-161-0/+3
|
* Changed audio_latency valid range from 1-5 to 0-5 (#7916) 9871238791132021-04-011-1/+1
|
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-141-1/+1
| | | | | | | | | | * 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
* coretmpl.h: Move lru_cache_map to separate header AJR2021-02-031-0/+1
|
* Bug fixes and usablility enhancements: Vas Crabb2021-01-295-18/+32
| | | | | | * 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
* Much more core std::string_view modernization AJR2021-01-202-9/+9
| | | | | | | | | | | | | | | - 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
* Fix DRC build breakage under Emscripten. [Justin Kerk] Justin Kerk2021-01-061-0/+2
|
* cpu: Allow recompilers to work with W^X policy Vas Crabb2021-01-065-203/+352
|
* Temporary hack so most DRC games work on the M1/Apple Silicon. [R. Belmont, ↵ arbee2020-12-281-0/+5
| | | | balr0g, Vas Crabb]
* Got rid of global_alloc/global_free. Vas Crabb2020-10-032-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* fixed some modernize-use-auto clang-tidy warnings (nw) (#6238) Oliver Stöneberg2020-01-302-3/+3
|
* fixed some clang-tidy warnings (nw) (#6236) Oliver Stöneberg2020-01-301-2/+2
| | | | | | | | | | | | | | | | * fixed some modernize-redundant-void-arg clang-tidy warnings (nw) * fixed some modernize-use-bool-literals clang-tidy warnings (nw) * fixed some modernize-use-emplace clang-tidy warnings (nw) * fixed some performance-move-const-arg clang-tidy warnings (nw) * fixed some readability-redundant-control-flow clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw) * fixed some performance-unnecessary-value-param clang-tidy warnings (nw)
* use C++ library includes (nw) firewave2020-01-224-6/+6
|
* video: higher maximum prescale (nw) hap2020-01-051-1/+1
|
* UI input menu: treat codes containing a postive and negative of the same ↵ Vas Crabb2019-11-212-2/+2
| | | | | | | | thing as invalid (e.g. A S not A) ioport.cpp: * better than 50% reduction in compile time, and better locality for static data * better encapsulation, const correctness and noexcept usage
* (nw) add doxygen comments for a bunch of core stuff, and convert a bunch of ↵ Vas Crabb2019-10-161-3/+3
| | | | comments to doxygen format
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-262-19/+22
| | | | | | | | | | | | | | | | | (nw) This has been a long time coming but it's here at last. It should be easier now that logerror, popmessage and osd_printf_* behave like string_format and stream_format. Remember the differences from printf: * Any object with a stream out operator works with %s * %d, %i, %o, %x, %X, etc. work out the size by magic * No sign extending promotion to int for short/char * No widening/narrowing conversions for characters/strings * Same rules on all platforms, insulated from C runtime library * No format warnings from compiler * Assert in debug builds if number of arguments doesn't match format (nw) Also removed a pile of redundant c_str and string_format, and some workarounds for not being able to portably format 64-bit integers or long long.
* srcclean (nw) Vas Crabb2019-09-221-1/+1
|
* Fix typo (nw) R. Belmont2019-09-161-1/+1
|
* A few files that got missed (nw) arbee2019-09-151-1/+2
|
* Changed osd_get_clipboard_text() to return std::string (#5615) npwoods2019-09-115-46/+39
| | | | | | | | | | * Changed osd_get_clipboard_text() to return std::string This change has only been tested on Windows. The Un*x/Mac versions were made blindly; they might not even build. This needs to be checked prior to merging. * Fixing Mac OS X build (hopefully)
* gdbstub: added new GDB stub debugger (#5456) Ramiro Polla2019-08-112-0/+4
| | | | | | | | | | | | * gdbstub: added new GDB stub debugger This debugger can be used to connect to an external debugger that communicates using the GDB Remote Serial Protocol, such as GDB itself or many other GDB frontends. Currently i386 (ct486), arm7 (gba), and ppc (pmac6100) are supported. * gdbstub: enable GDB stub debugger in mac and windows builds
* (nw) Clean up the mess on master Vas Crabb2019-03-262-18/+17
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-252-17/+18
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* apply -verbose after processing command-line options and after first pass ↵ Vas Crabb2019-01-122-18/+17
| | | | over .ini files (nw)
* make dsound default over xaudio2 (nw) hap2018-12-141-1/+1
| | | | | | | Reasoning: xaudio2 module was completely disabled for over 2 years and unmaintained. Using "auto", MAME actually chose dsound as default. Plus I seem to be getting random buffer underflows/overflows with it, it needs to be more stable before it can be default. related: https://github.com/mamedev/mame/commit/8889f182f1af3e4b4b61c4a82559ada24d30e671
* clean up and improve option descriptions Vas Crabb2018-12-131-16/+16
|
* dec8.cpp: Fix regression with ghostb, srdarwin (nw) Scott Stone2018-12-091-1/+1
| | | | Some misc text changes to certain trigger usage info (nw)
* HLSL Color Transforms and 3D LUT (#4043) Westley M. Martinez2018-10-072-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove broken scanline uniform from post_pass * Add 3D LUT to HLSL * Allow individual LUTs for screen and UI * WIP: Port 3D LUT to BGFX * Finish porting LUT to BGFX * Add individual phosphor color conversion for HLSL new file: hlsl/chroma.fx Shader for converting xyY3 to sRGB modified: hlsl/phosphor.fx Minor changes to emphasize idea that phosphors are color agnostic modified: hlsl/post.fx Conversion from signal RGB to xyY3 modified: src/osd/modules/render/d3d/d3dhlsl.cpp modified: src/osd/modules/render/d3d/d3dhlsl.h modified: src/osd/windows/winmain.cpp modified: src/osd/windows/winmain.h * Add phosphor examples and update presets * Port phosphor color shaders to BGFX * Fix missing newlines at EOF
* Fix crash when running a DRC CPU core under Emscripten (#2794). [Justin Kerk] Justin Kerk2018-07-151-2/+2
|
* osdlib: GetCurrentProcessId is valid on uwp (nw) cracyc2018-06-091-1/+1
|
* Discord plugin try 2 (#3640) cracyc2018-06-085-1/+37
| | | | | | | | | | | * plugins/discord: discord presence plugin [Carl] * plugins/discord: use domain sockets and pipes [Carl] * winptty: fix connecting to existing socket (nw) plugins/discord: show pause state (nw) * plugins/discord: fix pause behavior (nw)
* Fix exception on exit (nw) AJR2018-01-241-2/+0
|
* Eliminate core_strdup (nw) AJR2018-01-242-6/+8
|
* detect attached debugger on OSX before generating trace/breakpoint trap Vas Crabb2018-01-101-7/+17
|
* (nw) et3400: use keypad rather than keyboard type for keypad inputs; don't ↵ Vas Crabb2018-01-101-2/+1
| | | | raise sigtrap in non-debug builds
* Add Bicubic Shader to OpenGL Backend Aaron2017-12-302-2/+2
| | | | | | | | This shader uses the equation described by R. Keys in the paper 'Cubic Convolution Interpolation for Digital Image Processing' which is, in this case, the same as a Catmull-Rom spline. This produces a sharper upscaled image than bilinear filtering. The new shader is selected by setting gl_glsl_filter to 2. Consequently, gl_glsl_filter is now treated as an int rather than a boolean. Also fixed a variable name problem in the code guarded by GLSL_SOURCE_ON_DISK.
* Top prescale value allowed via command-line is 3 (not 4) (nw) Scott Stone2017-10-181-1/+1
|
* Fix for prescale value entry (MT#6720) (nw) Scott Stone2017-10-181-1/+1
|
* Fixed an options overhaul regression (#2530) npwoods2017-10-061-1/+0
| | | | | | | | | | | | This crash (discovered by Wizz) had the following symptoms: 1. Start MAME 2. Choose "Configure Machine" 3. Choose "Video Options" CRASH This was the result of the options editor not having a fully formed list of options where it was expecting one. The fix is to change the declaration of emu_options to one that have full OSD options (it is possible that SDLMAME needs something slightly different) I created a osd_setup_osd_specific_emu_options(emu_options &) function that given an emu_options, will slap on system specific options. I see this as only marginally less gross, and I have zero opinion on whether this should be changed to return an emu_options (rather than have a reference parameter), be a static method on emu_options, or what have you.
* Overhaul to how MAME handles options, take two (#2341) npwoods2017-06-251-1/+1
|
* Revert "Overhaul to how MAME handles options (#2260)" Vas Crabb2017-05-071-1/+1
| | | | | | | | | | | | This reverts commit 536990e77b49ccc50ef275bfbf1018cc29c16154. Conflicts: src/frontend/mame/mame.cpp Sorry, but this change was half-baked. It breaks a lot of existing functionality and clearly hasn't been tested in more than a tiny subset of use cases. Please play this work back onto your own branch, and test it before submitting another PR.