Commit Graph

2197 Commits

Author SHA1 Message Date
Miodrag Milanovic
2a87e99b21 fix osx compile (nw) 2016-07-31 15:24:28 +02:00
Miodrag Milanovic
9667c6a8cc std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw) 2016-07-31 14:41:02 +02:00
Miodrag Milanovic
4887ce1844 Cleanups and version bump 2016-07-27 09:26:22 +02:00
Nathan Woods
23175a3091 Using decltype() and removing +1/-1 "dance" 2016-07-25 07:57:54 -04:00
Nathan Woods
4a9e9742fd Fixed off by one issue and other cleanups requested by Vas 2016-07-25 07:49:26 -04:00
Nathan Woods
ab73291e47 Changed strconv.[cpp|h] functions to return their results as std::string and std::wstring 2016-07-24 22:55:00 -04:00
Miodrag Milanovic
d6179859ad Fix order of evaluation making imgui debugger not fail on starting without driver selected (nw) 2016-07-23 11:26:09 +02:00
therealmogminer@gmail.com
1cf1d00b7a Get sun4_40 happy with SCSI 2016-07-22 03:06:42 +02:00
Giuseppe Gorgoglione
14f5329fd4 BGFX: fix crash when bgfx effect folder is not present or incomplete
BGFX renderer requires some effects also when post-processing is disabled. If they are not available, MAME complains about missing effect files, but then goes on and crashes soon after printing the backtrace. This fix just exits gracefully when effect files are incomplete and falls back to a different renderer if the bgfx folder is missing at all, warning the user in advance.
2016-07-18 17:21:09 +02:00
ImJezze
89af2864ed Fixed MT #6291
* fixed copy of texture data to bitmap in BGFX
* changed AVI dimension to a lowest integral multiple of 4
  (2 was still to low for most video players, e.g. VLC)
* added audio to AVI record in HLSL
* HLSL AVI record now uses window dimension instead of snap dimension
2016-07-16 20:54:37 +02:00
ImJezze
502e02642e Fixed dimension of high-res snapshots (Alt + 12) and AVI records (Alt + Shift + F12) when screen dimension is swapped 2016-07-16 14:42:42 +02:00
R. Belmont
13c8e76cf7 Merge pull request #1093 from stevenc99/kfreebsd
GNU/kFreeBSD support
2016-07-16 06:09:32 -04:00
Scott Stone
670748c6e4 Assorted typos fixed (MT #6295, 6296) (nw) 2016-07-15 12:38:06 -04:00
Steven Chamberlain
b59412aa2c kfreebsd: use termios.h not just on regular FreeBSD 2016-07-13 13:31:10 +01:00
arbee
4a9c6b1cd0 Apollo changes: [Hans Ostermeyer]
- Keyboard mapping adjusted to fit current MAME
- Fixed screen raw parameters
- Fixed disp.dex Test 20 (Video SYNC Gen. Add. Test) for color displays

3c505: The Ethernet frame check sequence is now appended to transmit data [Hans Ostermeyer]

input_common: fixed 0.172 regression for non-US keyboards [Hans Ostermeyer]
2016-07-12 21:35:31 -04:00
Vas Crabb
3eb0e84041 fix build on debian ppc64 with -maltivec (nw)
problem is caused by <SDL2/SDL_cpuinfo.h> puling in <altivec.h> which #defines vector, pixel and bool
however when the compiler is in Apple Altivec mode, these are context-sensitive keywords and don't need to be #defined
we never need the #defines in our own code because we use the GCC-specific __vector instead of vector
so we trick the header to think the compiler is in Apple Altivec mode to suppress the #defines
2016-07-12 23:17:19 +10:00
Robbbert
1a1a22d6ca windebug: images: added Create option. 2016-07-09 20:41:42 +10:00
Robbbert
44335fc4f6 windebug: in images menu, added support for 7z. 2016-07-09 14:14:56 +10:00
Vas Crabb
13d8279e49 MT6284 flush stdout/stderr before killing process 2016-07-08 16:47:06 +10:00
Vas Crabb
ca5cf4982e Make behaviour slightly friendlier with hlsl_write option (nw) 2016-07-07 21:01:00 +10:00
Vas Crabb
6e64e3314a Patch up d3dhlsl as well (nw) 2016-07-07 20:20:38 +10:00
Vas Crabb
717e90b357 Restore ability to supply explicit name for bgfx AVI output file, auto causes it to generate ascending snap names 2016-07-07 19:10:17 +10:00
Vas Crabb
2c3fdc5221 POSIX implementation for valid filename/path character functions 2016-07-07 16:50:39 +10:00
Vas Crabb
630e7a2e98 Merge branch 'file_create_and_format_refactorings' of https://github.com/npwoods/mame 2016-07-07 16:03:39 +10:00
Vas Crabb
d68203e283 Merge pull request #1035 from GiuseppeGorgoglione/master
Direct3D HLSL: use aviwrite to record avi movies [GiuseppeGorgoglione]
2016-07-07 12:33:47 +10:00
Nathan Woods
34d537338f Changed osd_is_valid_filepath_char() to block 0x7F and C1 control characters 2016-07-05 22:47:16 -04:00
Nathan Woods
2ea76d70ea Create osd_is_valid_filename_char() and osd_is_valid_filepath_char() functions to check to see if a character is legal, and moved retired is_valid_filename_char() in filecreate.cpp. POSIX versions not implemented yet. 2016-07-05 22:19:49 -04:00
Vas Crabb
f736c7c6dd explicit <cstdlib> (nw) 2016-07-06 11:45:43 +10:00
Vas Crabb
1bd116c5c8 use allocating mode of ::realpath by default (nw) 2016-07-05 22:50:14 +10:00
Giuseppe Gorgoglione
85740d73e6 Remove bgfx_avi_name and hlsl_write options
Now the filenames for movies recorded by HLSL and BGFX renderers are automatically generated just like the ones for movies and snapshots recorded by the video core. They are generated according to the "snapname" template (eg. by default <snap_folder>/<device_name>/<numeric_index.avi>, so you can revert to the old behavior (why?) just setting "snapname  bgfx.avi" or "snapname  hlsl.avi".

The main advantage is that now you can record as many movies as you want during a single gaming session without much hassle (previously you had to move or rename the old movie file by hand before recording a new one).
2016-07-04 13:50:10 +02:00
Giuseppe Gorgoglione
2b0682196d Direct3D HLSL: use aviwrite to record avi movies
Use common infrastructure in aviwrite.c instead of equivalent local code.
In addition:
- the target textures used by the HLSL movie recorder are now allocated only when recording is ongoing
- removed shaders->begin_frame() and shaders->end_frame() hooks from the main Direct3D rendering loop
- set default HLSL movie name to hlsl.avi to match bgfx.avi setting
2016-07-04 10:48:47 +02:00
Jeremy Green
3697bd8cdc Added crt-geom and crt-geom-deluxe shaders for bgfx.
This includes several aperture grille / shadow mask patterns. Note that these are all designed to be used on a display with RGB subpixel order, and may thus suffer if rotated or used with a BGR display.
2016-07-03 22:43:16 +02:00
Vas Crabb
491ecdb025 Don't raise stuff to public unnecessarily (nw) 2016-07-02 13:11:16 +10:00
Brad Hughes
ad47988e79 Make monitor list a list of shared_ptr like window_list (nw) 2016-07-01 21:38:05 -04:00
Miodrag Milanovic
715c86f1c7 more cleanup (nw) 2016-07-01 20:50:37 +02:00
Giuseppe Gorgoglione
0312b918a8 Direct3D: convert linked lists into vectors of unique pointers 2016-07-01 01:42:29 +02:00
Giuseppe Gorgoglione
05ae871334 Misc code cleanups for Direct3D code
Removed unused methods, unused function parameters, redundant casts, doubly linked lists made into singly linked lists, etc.
2016-07-01 00:14:36 +02:00
Vas Crabb
c0fc78d341 Not needed anyway (nw) 2016-06-30 12:17:09 +10:00
Brad Hughes
7babf07020 Fix input issues on big endian systems (fixes #963) 2016-06-29 10:02:26 -04:00
Miodrag Milanovic
63f9a01f8c Cleanup and version bump 2016-06-29 08:34:30 +02:00
Vas Crabb
923151d00b Fixed incorrect implementation of win_time_point_from_filetime() 2016-06-26 22:44:21 +10:00
Nathan Woods
5009b55430 Introduced src/lib/util/timeconv.[c|h], moved code from un7z.cpp into it, and implemented win_time_point_from_filetime() in terms of it 2016-06-26 08:12:07 -04:00
Brad Hughes
eb97703a4c Fix mouse behavior on OSX 2016-06-25 20:36:54 -04:00
Nathan Woods
3232bfad89 Fixed incorrect implementation of win_time_point_from_filetime() 2016-06-25 16:08:26 -04:00
Miodrag Milanovic
f75a33f7d1 clang on windows fixes (nw) 2016-06-25 20:06:02 +02:00
Brad Hughes
def1777e74 A few minor input fixes and cleanups
- input modules exit() is called twice. Remove the unnecessary input_exit() method
- removed unnecessary pointer init in handle_input_event and should_hide_mouse
- When registering event callbacks in SDL, don't assume the SDL enum values are int-sized
2016-06-25 11:43:15 -04:00
mahlemiut
443938c991 debugimgui: allow debugger console and log window scrollbars to stay at their maximum value if already there 2016-06-25 13:41:45 +12:00
Vas Crabb
f92f3e22f8 Init (nw) 2016-06-25 11:04:14 +10:00
Vas Crabb
9fccecfcf3 Fine, be that way GCC (nw) 2016-06-25 10:46:55 +10:00
Vas Crabb
52e65cb567 Better fix (nw) 2016-06-25 10:33:59 +10:00
Vas Crabb
c33946ba0b Fix path with missing return, hopefully fix OSX build (nw) 2016-06-25 10:05:59 +10:00
Vas Crabb
e363c5e154 Revert "This worked by pure luck (nw)"
This reverts commit b3491464e4.
2016-06-25 09:56:05 +10:00
couriersud
9027566956 Fix clang compile. (nw) 2016-06-25 00:27:43 +02:00
Miodrag Milanovic
b3491464e4 This worked by pure luck (nw) 2016-06-24 21:25:02 +02:00
Vas Crabb
5cee9e9bc4 POSIX implementation for new directory read features, cleanup of Windows implementation, return directory handle as smart pointer, fix full build [Vas Crabb] 2016-06-25 03:35:23 +10:00
Nathan Woods
7509a56dc0 Incorporated cleanups requested by Vas Crabb 2016-06-24 07:55:10 -04:00
Nathan Woods
4ddfc6a6e4 Changed osd_stat() to return std::unique_ptr<osd::directory::entry> 2016-06-24 07:39:37 -04:00
Nathan Woods
cd8b414e6b C++-ified osd_directory (now osd::directory), and added last_modified to osd::directory::entry 2016-06-24 07:13:18 -04:00
mahlemiut
597b2417b4 debugimgui: don't add command to history if it's the same as the previous one 2016-06-23 00:20:48 +12:00
mahlemiut
59d73876fb debugimgui: when using history, set the cursor position to the end of the text 2016-06-20 14:40:13 +12:00
ImJezze
2f06a08ec4 Small shader corrections (nw) 2016-06-20 00:03:44 +02:00
ImJezze
f056b622bc Fixed crash of D3D when sliders menu is openend and resizing the window or switching between window and full screen mode 2016-06-20 00:03:43 +02:00
mahlemiut
7b2ccbd32e debugimgui: added history functionality to debugger console, fixed issue with main views being re-allocated when no extra windows have been created. 2016-06-19 11:36:54 +12:00
Brad Hughes
fd56812b53 Don't crash on input modules not derived from wininput_module (like "none") 2016-06-18 03:21:38 -04:00
Brad Hughes
432e378456 Add XAudio2 init time logging 2016-06-18 03:19:36 -04:00
Brad Hughes
7f81081c6a Change two dynamic bind messages to verbose. 2016-06-17 22:01:45 -04:00
Brad Hughes
9f214108eb Add WINAPI to other needed functions for stdcall calling convention on 32-bit 2016-06-15 16:25:43 -04:00
smf-
2e51110ebf The calling convention goes inside the brackets of pointers to functions. Allows compiling with MSVC (nw)
Revision: 58dc78b6eb
Author: Giuseppe Gorgoglione <gorgogsp@gmail.com>
Date: 28/05/2016 03:14:15
Message:
Introduce dynamic_module

This is a central cross-platform facility to dynamically bind functions from shared libraries.
    Updated all OSD modules to use it.
2016-06-15 15:11:36 +01:00
Vas Crabb
78ec04e585 Merge pull request #907 from einstein95/patch-6
Rearrange shaderc arguments (nw)
2016-06-15 14:58:51 +10:00
Vas Crabb
d479f0b4be Merge pull request #911 from GiuseppeGorgoglione/master
Three patches with code cleanups to the OSD layer [
Giuseppe Gorgoglione]
* Fix debugging code in font_dwrite.cpp
* Introduce dynamic_module
* Remove Direct3D abstraction layer
2016-06-15 14:52:19 +10:00
mahlemiut
7a23493dcc debugimgui: if console window is active, then give console input widget focus. Note that this means that the disassmbly view in the console cannot get focus at all (but separate disasm windows still can). 2016-06-14 22:30:08 +12:00
mahlemiut
d881a058e4 debugimgui: use IM_COL32 macro 2016-06-13 23:33:46 +12:00
Miodrag Milanovic
7893ce3aea fix handling VIDEO_NONE on windows (nw)
fix SDL version of zexall (nw)
2016-06-12 10:47:06 +02:00
R. Belmont
bdab9d1c96 fix clang build (nw) 2016-06-11 15:11:08 -04:00
Giuseppe Gorgoglione
852bd80d45 Remove Direct3D abstraction layer
It was introduced to support Direct3D 8 and 9 with the same code base. They had a very similar programming model and the abstraction layer was taking advantage of that. Now, Direct3D 8 support in MAME was removed long time ago, an Direct3D 11 and 12 have very different programming models, so the layer is not useful anymore and can be safely removed to simplify the code.
2016-06-11 20:14:09 +02:00
Giuseppe Gorgoglione
58dc78b6eb Introduce dynamic_module
This is a central cross-platform facility to dynamically bind functions from shared libraries.
    Updated all OSD modules to use it.
2016-06-11 20:14:09 +02:00
Giuseppe Gorgoglione
ea1b66f146 Fix debugging code in font_dwrite.cpp
Debugging code was disabled by default so compilation errors were overlooked.
2016-06-11 20:14:09 +02:00
Brad Hughes
6c1464238c Merge pull request #944 from bradhugh/unify_windowlist
Unify window_list in Windows and SDL OSD
2016-06-11 12:29:16 -04:00
Brad Hughes
1f8cf36ec9 Move window_list to osd_common_t 2016-06-11 12:02:22 -04:00
mahlemiut
76629ee6bf debugimgui: draw a light rectangle around a view if it has focus, gives a visual cue as which view accepts input. 2016-06-11 19:07:57 +12:00
Brad Hughes
6bea81d33a Unify window_list in Windows and SDL OSD 2016-06-10 22:55:00 -04:00
Vas Crabb
8d4dbe3747 Fix keyboard shortcus for disassembly comments pane [Vas Crabb]
* Win32 previously recognised Ctrl+N but menu incorrectly showed Ctrl+M
* Qt showed Ctrl+C but it was swallowed by text editing and didn't work
* Ctrl+N is now shown/used by Win32 and Qt (matches Cmd-N on OS X)
2016-06-09 19:26:39 +10:00
therealmogminer@gmail.com
56bd36c5ef Major refactoring of debugger core [Ryan Holtz]
* Eliminate globals/file statics
* Remove lots of stuff from global scope
* Use std::function for custom command registration
* Eliminate some trampolines
* Build fixes from Vas Crabb and balr0g
2016-06-08 08:10:55 +10:00
dankan1890
24d11ff49f Fixed video mode opengl duplicated in SDL build. (nw) 2016-06-07 04:34:49 +02:00
ImJezze
758aaa496a Fixed scanlines if the screen output is less than twice the size of the host source 2016-06-06 19:40:36 +02:00
mahlemiut
d3410b72a1 debugimgui: send character inputs to the debugger view with focus, allows editing in memory views. 2016-06-06 19:07:33 +12:00
mahlemiut
810d7d809a debugimgui: make new window shortcut keypresses not repeat 2016-06-06 15:05:04 +12:00
mahlemiut
233949423a debugimgui: made debugger keys also use ImGui keypress functions 2016-06-06 14:30:57 +12:00
arbee
8a3c3d174c fix non-Windows compile (nw) 2016-06-05 21:23:28 -04:00
ImJezze
6ea15072a7 Procedural texture for vectors in HLSL
* added simple procedural texture for vectors with rounded line ends and beam smoothness
* added optional -vector_beam_smooth option
* removed -antialias option, antialiasing is now always applied, except for plain D3D
2016-06-05 23:50:44 +02:00
Miodrag Milanovic
dba7c1ac94 Placed back old output system as module "-output windows" need more things cleaned (nw) 2016-06-05 21:11:56 +02:00
arbee
eb2617f7ae Fixed network output to include all data [headkaze] 2016-06-05 14:10:57 -04:00
mahlemiut
e90289ddd6 debugimgui: adjust key repeat rate a bit 2016-06-05 23:29:59 +12:00
mahlemiut
68a548863d debugimgui: fix exception when un-collapsing a single window. 2016-06-05 14:16:57 +12:00
mahlemiut
97b46548e6 debugimgui: use ImGui functions to handle view inputs, allows key repeating to work in the debugger views. 2016-06-05 13:28:15 +12:00
mahlemiut
3cf5bfdff1 debugimgui: actually map cursor keys so that they can be used in input text widgets. Duh. 2016-06-04 21:26:13 +12:00
mahlemiut
f6d3737c8b debugimgui: add auto select-all flag to disassembly and memory expression inputs. 2016-06-04 19:00:18 +12:00
Brad Hughes
b8cea5e0f9 Ensure XAudio2 doesn't crash when no sound card present. 2016-06-03 23:17:20 -04:00
mahlemiut
36ca96bcfe debugimgui: pressing Enter on an empty console input box does a single step. 2016-06-03 19:14:11 +12:00
mahlemiut
27a8e715bc debugimgui: removed scrollbar from memory windows, and let the view itself control what is displays. Use cursors/pageup/pagedown to control the memory window when the view cursor is visible. 2016-06-02 19:08:00 +12:00