Commit Graph

2537 Commits

Author SHA1 Message Date
Vas Crabb
3e60ab4a04 cocoa debugger: save/restore console split positions 2017-07-21 18:25:06 +10:00
Vas Crabb
d7984c7d0c Add a method for copying part of an XML tree into another tree and use it to fix Cocoa debugger fatal error 2017-07-21 13:03:44 +10:00
Vas Crabb
05e84dccc0 * Make XML file a class of its own managed with smart poitners
* Save/restore a little more of Cocoa debugger state
2017-07-21 11:47:41 +10:00
Vas Crabb
b6d7d31d49 * Save/restore more Cocoa debugger state
* Fix some Cocoa debugger desync issues
 - Scroll to selection on gaining focus by keyboard (e.g. tab) only
 - Fixes jump on clicking a memory or disasm view that you've scrolled
2017-07-21 01:17:52 +10:00
Vas Crabb
c36c1572ec Added basic support for saving/restoring Cocoa debugger window state, compatible with Qt debugger where possible 2017-07-20 22:01:02 +10:00
Vas Crabb
74525566db no reason to prefer inline assembly over MSVC _BitScanReverse intrinsic on x86 (nw) 2017-07-09 14:42:35 +10:00
Vas Crabb
2050f2a6a2 clean up inlines (nw) 2017-07-09 13:38:32 +10:00
Vas Crabb
d18aa3e097 never hurts to srcclean (nw) 2017-07-09 03:21:32 +10:00
arbee
3ac9c56e65 remove unnecessary verbosity (nw) 2017-07-04 14:50:57 -04:00
arbee
8a494cbeac output: Fleshed out network output provider so it has the same capability as legacy Win32.
Clients:
- Connect to TCP port 8000
- Messages will be of the form "verb = value\1"; if your client is busy when MAME is spamming, you may get multiple messages glued together by \1 separators.  (\1 was chosen because it's neutral on Win32/Mac/Linux).
- You will get a "hello = 1" message upon connection to MAME, and a "mamerun = 0" message when MAME shuts down.
- You may send "send_id = n" to MAME to get IDs where n=0 means ROM set name of current game, 1-? = output node names
  - MAME will reply "req_id = string\1"; this is currently the only case where a string will be returned instead of an integer value.
- A working example POSIX client will be released soon.
2017-07-04 14:42:32 -04:00
Olivier Galibert
4ea3dde4f3 Misc fixes (nw) 2017-07-03 15:21:44 +02:00
Olivier Galibert
cbbbd07484 dimemory: Lift the cap on the number of address spaces per device [O. Galibert] 2017-07-03 08:03:57 +02:00
R. Belmont
10f74bb2fe Merge pull request #2409 from 057a3dd61f99517a3afea0051a49cb27994f94d/sdl-callback-fix
Fix sound_sdl::sdl_callback, fill buffer with silence when underflow.
2017-06-25 07:55:14 -04:00
057a3dd61f99517a3afea0051a49cb27994f94d
9788f622e2 Fix sound_sdl::sdl_callback, fill buffer with silence when underflow.
The problem is most noticeable when you are saving state, and the
save takes a relatively long time, short period of audio gets played
repeatedly, which is usually unpleasant.

I found out it's caused by sdl_sound::sdl_callback not fill the audio
buffer with silence when underflow occurs. According to
https://wiki.libsdl.org/SDL_AudioSpec, if there's nothing to play,
the callback should fill the buffer with silence.

I tested this change and the problem is gone.
2017-06-25 18:28:43 +00:00
Olivier Galibert
cd6acdb6bc sdl: Add SDL_WINDOW_BORDERLESS for fullscreen, required by some window managers on linux [O. Galibert]
Breakage was in 8338e0d7a4 (march 2015),
and yes, fullscreen didn't work correctly for me since then.  Shows
how much I use it, I guess.  FWTW my window manage is the venerable
fvwm2.  CourierSud, if you happen to remember why you changed that (in
the middle of a lot of other changes), let me know, and we'll see how
to make it work for everybody.
2017-06-25 11:14:45 +02:00
Vas Crabb
41e1555242 Merge branch 'release0187'
Conflicts:
	src/mame/drivers/accomm.cpp
2017-06-25 15:19:30 +10:00
Vas Crabb
f31e735053 srcclean (nw) 2017-06-25 15:18:14 +10:00
npwoods
b193e05cd7 Overhaul to how MAME handles options, take two (#2341) 2017-06-25 12:48:56 +10:00
npwoods
2af3233101 Changed a few 'const char *' ==> 'const std::string &' in the MAME debugger (#2170) 2017-06-24 09:46:58 +10:00
Robbbert
4ee2d1c7b0 (nw)Windows debugger: removed "Mount Item" for now due to bugs, also removed internal media slots from images menu. 2017-06-24 01:10:44 +10:00
Brad Hughes
6ada942567 Tiny UWP compile fix (nw) 2017-06-20 16:27:58 -04:00
MooglyGuy
0a7da0fb67 -bgfx: Fixed xBR-lv2-multipass shader. [Ryan Holtz] 2017-06-11 19:55:47 +02:00
MooglyGuy
8496545170 -bgfx: Fixed the following xBR shaders: xBR-lv2-fast, xBR-lv2-noblend, xBR-lv2, xBR-lv3-noblend, and xBR-lv3. [Ryan Holtz] 2017-06-10 12:52:17 +02:00
Robbbert
cc9a0e699f Windows debugger: image menu: Mount File/Create default to swpath instead of randomness. 2017-06-01 22:46:39 +10:00
Robbbert
889fff01a2 Windows debugger: image menu: added ability to load software-list items. 2017-06-01 22:09:27 +10:00
Vas Crabb
aaed83a91f scoped enum for Windows (nw) 2017-05-23 15:59:55 +10:00
Vas Crabb
96c9112785 general cleanup:
* move rarely-used output and pty interfaces out of emu.h
* consolidate and de-duplicate forward declarations, also remove some obsolete ones
* clean up more #include guard macros
* scope down a few more things

(nw) Everyone, please keep forward declarations for src/emu in src/emu/emufwd.h -
this will make it far easier to keep them in sync with declarations than having
them scattered through all the other files.
2017-05-23 15:01:11 +10:00
MooglyGuy
90d6fe79ce Fixed HQx shaders with BGFX OpenGL backend. Fixes for more shaders seem to be a bit more involved. Will have proper commit message later. (nw) 2017-05-18 00:59:37 +02:00
smf-
f7f4b2126e Revert "reordering the #include lets you build this file with latest mingw headers (nw)"
This reverts commit c3b10caf4e.
2017-05-14 16:49:49 +01:00
smf-
aca23ef3ba reordered #include again for latest mingw64 includes (nw) 2017-05-14 16:09:24 +01:00
Vas Crabb
0f0d39ef81 Move static data out of devices into the device types. This is a significant change, so please pay attention.
The core changes are:
* Short name, full name and source file are no longer members of device_t, they are part of the device type
* MACHINE_COFIG_START no longer needs a driver class
* MACHINE_CONFIG_DERIVED_CLASS is no longer necessary
* Specify the state class you want in the GAME/COMP/CONS line
* The compiler will work out the base class where the driver init member is declared
* There is one static device type object per driver rather than one per machine configuration

Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type.
* DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders.
* DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type.

Use  DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types.
* These macros declare storage for the static data, and instantiate the device type and device finder templates.

The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate.

Things I've actually messed with substantially:
* More descriptive names for a lot of devices
* Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes
* Changed DECO BSMT2000 ready callback into a device delegate
* Untangled Microprose 3D noise from driver state
* Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices
* Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly
* Started to break out common parts of Samsung ARM SoC devices
* Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++
* Tried to make Z180 table allocation/setup a bit safer
* Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant
* Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size
* Imporved encapsulation of Z80DART channels
* Refactored the SPC7110 bit table generator loop to make it more readable
* Added wrappers for SNES PPU operations so members can be made protected
* Factored out some boilerplate for YM chips with PSG
* toaplan2 gfx
* stic/intv resolution
* Video System video
* Out Run/Y-board sprite alignment
* GIC video hookup
* Amstrad CPC ROM box members
* IQ151 ROM cart region
* MSX cart IRQ callback resolution time
* SMS passthrough control devices starting subslots

I've smoke-tested several drivers, but I've probably missed something.  Things I've missed will likely blow up spectacularly with failure to bind errors and the like.  Let me know if there's more subtle breakage (could have happened in FM or Voodoo).

And can everyone please, please try to keep stuff clean.  In particular, please stop polluting the global namespace.  Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros.
It feels like an uphill battle trying to get this stuff under control while more of it's added.
2017-05-14 21:44:11 +10:00
Vas Crabb
a400c011a9 Revert "Overhaul to how MAME handles options (#2260)"
This reverts commit 536990e77b.

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.
2017-05-07 14:40:12 +10:00
npwoods
536990e77b Overhaul to how MAME handles options (#2260)
This is an overhaul to how MAME handles options to provide a better foundation for what MAME is already doing in practice. Previously, core_options was designed to provide an input/output facility for reading options from the command line and INI files. However, the current needs (image/slot/get_default_card_software calculus and MewUI) go way beyond that.

Broadly, this PR makes the following changes:
* core_options now has an extensibility mechanism, so one can register options that behave dramatically differently
* With that foundation, emu_options now encapsulates all of the funky image/slot/get_default_card_software calculus that were previously handled by static methods in mameopts.cpp. Changes to emu_options should not automatically cascade in such a way so that it stays in a consistent state
* emu_options no longer provides direct access to the slot_options/image_options maps; there are simpler API functions that control these capabilities
* Many core_options functions that expose internal data structures (e.g. - priority) that were only really needed because of previous (now obsolete) techniques have been removed.
* core_options is now exception based (rather than dumping text to an std::string). The burden is on the caller to catch these, and discern between warnings and errors as needed.

Obviously this is a risky change; that's why this is being submitted at the start of the dev cycle.
2017-05-05 16:17:49 +10:00
R. Belmont
d192935b24 Merge pull request #2252 from npwoods/remove_duplicate_option
Removed redundant ";global_inputs"
2017-04-25 14:11:50 -04:00
Nathan Woods
490bd29131 Disambiguated the WINOPTION_YIQ_PHASE_COUNT option
"yiqp" was used for WINOPTION_YIQ_PVALUE and WINOPTION_YIQ_PHASE_COUNT
2017-04-24 18:56:54 -04:00
Nathan Woods
b75cb611ad Removed redundant ";global_inputs" 2017-04-23 18:50:59 -04:00
Vas Crabb
2e14f39a07 do variable substitution in bgfx_path #2201 2017-04-23 16:48:52 +10:00
Vas Crabb
dac6dc4f62 srcclean (nw) 2017-04-23 12:27:42 +10:00
Vas Crabb
3047b62665 srcclean (nw) 2017-03-26 19:13:42 +11:00
Miodrag Milanovic
a328b1c166 Fixed SDL build on win32 and zexall build (nw) 2017-03-26 19:11:50 +11:00
Olivier Galibert
2cead2e014 Compile testing anybody? (nw) 2017-02-27 18:15:33 +01:00
Brad Hughes
0505d3c985 Some reports of garbage in console with DInput controllers.
Change to snprintf with assert since apparently snprintf fixes the reported problem.
2017-02-27 11:15:29 -05:00
Vas Crabb
6c23897483 Self-registering devices prep:
* Make device_creator a variable template and get rid of the ampersands
* Remove screen.h and speaker.h from emu.h and add where necessary
* Centralise instantiations of screen and speaker finder templates
* Add/standardise #include guards in many hearers
* Remove many redundant #includes
* Order #includesr to help catch headers that can't be #included alone

(nw) This changes #include order to be prefix, unit header if applicable
then other stuff roughly in order from most dependent to least dependent
library.  This helps catch headers that don't #include things that they
use.
2017-02-27 22:57:14 +11:00
Nathan Woods
8c53c1438e Fixed an issue where device options (e.g. -cart) were reported as unknown when they actually worked
This change also changes around how command line arguments are passed around; specifically I changed argc/argv to be std::vector<std::string>

Note this is not passed around 'const', the reason being that the command line processing will now "eat" the vector
2017-02-22 23:13:41 -05:00
Miodrag Milanovic
21501824eb Cleanup, we already have NOMINMAX now in scripts (nw) 2017-02-11 19:35:28 +01:00
AJR
269c4c7410 Fix OS X build (nw) 2017-02-11 13:32:42 -05:00
Miodrag Milanovic
aa83c19e77 fix windows compile (nw) 2017-02-11 19:27:17 +01:00
Olivier Galibert
a2557f1b02 Remove emu.h from headers (nw)
Per Vas' request.  If the compile fails for you (i'm thinking osx and
windows native debuggers here in particular), add '#include "emu.h"'
as first include of the cpp files that fail.

Due to our use of precompilation and forced inclusion, emu.h must be
included as the very first non-comment thing we do if we want to be
sure msvc compiles are identical to gcc/clang ones.  Doing it directly
instead of through an include increases the correctness probability by
a magnitude.
2017-02-11 18:31:20 +01:00
intealls
51749ab970 Fix issues on 32-bit builds and clamp latency 2017-01-30 16:32:28 +01:00
Julian Sikorski
4c6cae2570 Fixed building using system portaudio 2017-01-26 19:11:46 +11:00
Stiletto
9db7b63e9a Updates "2016" strings to "2017 where relevant.
Updates "2016" strings to "2017 where relevant.
2017-01-24 17:29:49 -05:00
Vas Crabb
edf64df1db srcclean (nw) 2017-01-22 15:37:37 +11:00
intealls
ff0f5b2241 rename variables to maintain consistent with coreaudio/sdl etc 2017-01-19 00:37:38 +01:00
intealls
86cbd2acf6 fix up initialization 2017-01-19 00:21:10 +01:00
intealls
9422c23001 Simplify the audio buffer and fix a wrap-around issue 2017-01-18 04:35:06 +01:00
intealls
08bdab3b65 fix allowed latency range 2017-01-17 23:50:06 +01:00
Curt Coder
ebac862e2b OS X Cocoa debugger: Improved view scroll behavior. [Curt Coder] 2017-01-17 22:29:38 +02:00
Curt Coder
f096bee09b OS X Cocoa debugger: Autoscroll log window. [Curt Coder] 2017-01-17 22:29:38 +02:00
intealls
9d1c8c45ae fix indentation, leading spaces to tabs 2017-01-15 00:05:18 +01:00
intealls
d406d4dd2f some osd_printf_verbose calls should be to osd_printf_error 2017-01-14 22:15:12 +01:00
intealls
f0887bfd0a fix memory leak and log error checking 2017-01-14 22:00:59 +01:00
intealls
9b3214af37 tabs to spaces 2017-01-14 21:58:36 +01:00
R. Belmont
32c13ad929 Merge pull request #1959 from intealls/pa_oct16
PortAudio library update and backend
2017-01-12 20:30:12 -05:00
Brad Hughes
8f8facffe9 UWP: Fix alt key input (nw) 2017-01-11 18:32:02 -05:00
inte alls
cd03a64284 Initial PortAudio backend with build script changes to support library version 20161030 2017-01-11 20:24:00 +01:00
Brad Hughes
03219d9fef Fix UWP compile (nw) 2017-01-11 12:20:00 -05:00
R. Belmont
311a56b958 Revert "New phosphor persistence shaders for HLSL" 2017-01-05 12:30:07 -05:00
ImJezze
ff28f114b4 Merge pull request #1843 from anikom15/hlsl
New phosphor persistence shaders for HLSL
2017-01-05 18:03:25 +01:00
Westley M. Martinez
2b95c8e50b Change cached texture format to floating point.
hlsl/phosphor.fx: Remove hacks

	ini/presets/raster.ini, ini/presets/vector-mono.ini,
ini/presets/vector.ini: Tweak presets

	src/osd/modules/render/d3d/d3dcomm.h,
src/osd/modules/render/d3d/d3dhlsl.cpp,
src/osd/modules/render/drawd3d.cpp: Change cache texture format to
floating point for precise for phosphor and ghosting shaders.
2017-01-04 17:44:46 -08:00
Westley M. Martinez
fad07814a0 Correct LCD ghosting INI and slider defaults. 2017-01-03 17:03:14 -08:00
Westley M. Martinez
91172125de Add LCD ghosting shader for Direct3D
hlsl/ghosting.fx: Add LCD ghosting shader

	hlsl/phosphor.fx: Remove LCD logic

	ini/presets/gameboy.ini, ini/presets/gba.ini,
ini/presets/lcd-matrix.ini, ini/presets/lcd.ini, ini/presets/raster.ini,
ini/presets/vector.ini: Update presets

	src/osd/modules/render/d3d/d3dhlsl.cpp,
src/osd/modules/render/d3d/d3dhlsl.h: Add LCD shader and sliders.  Allow
sliders to be adjusted for R, G, and B components.

	src/osd/windows/winmain.cpp, src/osd/windows/winmain.h: Add LCD
ghosting options.# Please enter the commit message for your changes. Lines starting
2017-01-02 15:42:33 -08:00
Miodrag Milanovic
a64328499c Fix compile with latest BGFX (nw) 2017-01-02 14:46:55 +01:00
Vas Crabb
4b016e6b1d Fix OSX build - no idea why it wasn't breaking before (nw) 2016-12-31 13:52:17 +11:00
Westley M. Martinez
7cda4860ec Scale and phosphor persistence sliders.
hlsl/phosphor.fx: Scale parameter into tau or gamma.

	src/osd/modules/render/d3d/d3dhlsl.cpp:
	src/osd/modules/render/d3d/d3dhlsl.h:
	src/osd/windows/winmain.cpp:
	src/osd/windows/winmain.h: Combine tau and beta sliders into one
slider labeled 'Time Constant'.
2016-12-30 15:40:30 -08:00
Westley M. Martinez
43d7ab3663 Implement LCD persistence shader.
hlsl/phosphor.fx: Do LCD persistence effect using boolean LCD.
LCD persistence is monochrome and thus does not have separate components
like phosphor persistence.

	src/osd/modules/render/d3d/d3dhlsl.cpp: Add slider for LCD
games.

	src/osd/modules/render/d3d/d3dhlsl.h: (BP) Add options for LCD
games.

	src/osd/windows/winmain.cpp: (BP) Add options for LCD games.

	src/osd/windows/winmain.h: (BP) Add options for LCD games.
2016-12-29 14:57:31 -08:00
Westley M. Martinez
0b6f935443 Implement new phosphor shader.
hlsl/phosphor.fx: Make changes to the pixel shader.  New
uniforms: Mode, Tau, Beta, Gamma.  Remove Phosphor.  Mode selects the
mode for phosphor simulation: off (no decay), exponential, inverse
power.  Tau is the time constant for exp. decay.  Beta and Gamma are
constants for inv-pow.

	src/osd/modules/render/d3d/d3dhlsl.cpp: Provide uniforms and add
sliders for new options.

	src/osd/modules/render/d3d/d3dhlsl.h: (BP) Provide new options.

	src/osd/windows/winmain.cpp: (BP) Provide new options.

	src/osd/windows/winmain.h: (BP) Provide new options.
2016-12-29 14:57:28 -08:00
Brad Hughes
b47ec24df6 Move special windows.h include directives to build defines (nw) 2016-12-28 15:07:28 -05:00
Vas Crabb
127fd9b427 first srcclean pass (nw) 2016-12-25 13:57:31 +11:00
Vas Crabb
44eb44996a Fix #1802 (uninitialised memory read as debugger command history) and clean up a little 2016-12-17 08:12:07 +11:00
arbee
fcf35c1b30 fix compile with Xcode 8.2 (nw) 2016-12-15 22:05:15 -05:00
mahlemiut
733df166a3 debugimgui: sort directory entries in mount dialog, as zippath_readdir() does not guarantee entries are in any particular order. 2016-12-16 14:34:14 +13:00
Westley M. Martinez
e874afa308 Merge remote-tracking branch 'refs/remotes/mamedev/master' into hlsl 2016-12-13 12:06:41 -08:00
Westley M. Martinez
70a9637eb5 Simplify implementation of delta_time.
src/osd/modules/render/d3d/d3dhlsl.cpp: Move time members
calculation to shaders::begin_draw.

	src/osd/modules/render/d3d/d3dhlsl.h: Remove update_t.
2016-12-13 10:27:55 -08:00
Westley M. Martinez
fb747b6ca4 Correct comments regarding delta_time. 2016-12-12 22:59:44 -08:00
Westley M. Martinez
40e71b93ae Add signal so that any future shaders relying on delta_time do not
interfere with each other.

	src/osd/modules/render/d3d/d3dhlsl.cpp: update_t flag is reset
for each emulated screen 0.

	src/ods/modules/render/d3d/d3dhlsl.h: Add update_t.
2016-12-12 22:34:14 -08:00
Westley M. Martinez
77fd0232e6 Fix phosphor shader to work properly for multi-screen games and
multi-window use.

	hlsl/phosphor.fx: Update semantics.

	src/osd/modules/render/d3d/d3dhlsl.cpp: Implement
shaders::delta_time member function.

	src/osd/modules/render/d3d/d3dhlsl.h: Add acc_t and delta_t
members for use by shaders::delta_time.  Member function returns the
amount of time since itself has been called, for use by time-dependent
shaders.
2016-12-12 22:09:59 -08:00
Westley M. Martinez
35035aae28 Remove iostream (used for debugging) 2016-12-11 12:11:13 -08:00
Westley M. Martinez
eba9550c42 Fix phosphor persistence shader behavior based on time.
hlsl/phosphor.fx: Add calculation time passed to be used by
shader.

	src/osd/modules/render/d3d/d3dhlsl.cpp: Make pixel shader
calculate the current pixel by factoring in the amount of time which has
passed since the last rendering.
2016-12-11 12:01:43 -08:00
Vas Crabb
c8f1954467 XML refactoring:
* move stuff to namespace util::xml
* scope down some enums
* split config load/save delegate types
* make config load take const so it can't mangle data
2016-12-11 18:15:41 +11:00
mahlemiut
844d4cbe45 debugimgui: lighten combo box list so that it's easier to read (nw) 2016-12-04 19:43:27 +13:00
Vas Crabb
2119b2bfb4 Merge pull request #1749 from bradhugh/dynamic_api
Created DYNAMIC_API macros for dynamic bind helper classes
2016-12-02 05:50:45 +11:00
Brad Hughes
6acd017c3f Update name of DYNAMIC_API macros (nw) 2016-12-01 13:35:58 -05:00
Brad Hughes
ec4acf4b36 Small 32 bit windows monitor module fix (nw) 2016-11-28 07:36:50 -05:00
Vas Crabb
7238415d1f srcclean (nw) 2016-11-27 09:56:49 +11:00
Vas Crabb
51f33cf106 Fix key names with -keyboardprovider win32 2016-11-25 12:10:14 +11:00
Vas Crabb
361f0a7691 clean up tabulation, fix some things (nw) 2016-11-25 04:12:04 +11:00
Scott Stone
30cda1d3e5 A round of spelling/typographical fixes to source comments (nw) 2016-11-24 09:24:01 -05:00
Brad Hughes
a10fcd31d3 Simpler low-cost implementation making modules and function pointers class members instead (nw) 2016-11-21 08:04:47 -05:00
Brad Hughes
39b6789c68 Fix compile issue by using std::ref wrapper (nw) 2016-11-20 15:15:15 -05:00
Brad Hughes
af289d1c30 Changing singleton to be thread safe (nw) 2016-11-20 13:42:34 -05:00
Brad Hughes
7e327d5d4e Remove LoadLibrary hack from UWP (nw) 2016-11-20 13:41:47 -05:00
Brad Hughes
fcb9f8f548 fix gcc compile issue (nw) 2016-11-20 13:41:46 -05:00
Brad Hughes
3ca391bb3a Update dwrite debugging functions with DYNAMIC_API (nw) 2016-11-20 13:41:46 -05:00
Brad Hughes
78a30a25b0 Update DirectWrite font provider to use DYNAMIC_API (nw) 2016-11-20 13:41:45 -05:00
Brad Hughes
17c9b0b784 Created DYNAMIC_API macros for cleaner definition of dynamically linked functions 2016-11-20 13:41:44 -05:00
Vas Crabb
8179a84458 Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h"
* Get rid of import of cstdint types to global namespace (C99 does this anyway)
* Remove the cstdint types from everything in emu
* Get rid of U64/S64 macros
* Fix a bug in dps16 caused by incorrect use of macro
* Fix debugcon not checking for "do " prefix case-insensitively
* Fix a lot of messed up tabulation
* More constexpr
* Fix up many __names
2016-11-19 05:38:48 +11:00
Brad Hughes
0fb4fe79f8 UWP: keyboard scancodes start at 1 (nw)
Also thread synchronization which will be needed later when we have multiple windows (nw)
2016-11-17 09:59:29 -05:00
Brad Hughes
98f22fc6de Change window handle storage to template instead of void* (nw) (#1725)
* Change window handle storage to template instead of void* (nw)
2016-11-17 00:32:26 -05:00
Vas Crabb
54444fecff patch up Qt debugger for new xmlfile API (nw) 2016-11-17 11:12:16 +11:00
Miodrag Milanovic
d5bf30edb8 Fix compilation under VS2017 (nw)
default_semantics is used by apply so need to be public
2016-11-16 21:00:29 +01:00
Brad Hughes
0ca7ac3b2a UWP: Missing gamepad reset caused control sticking (nw) 2016-11-15 18:05:43 -05:00
Brad Hughes
4681199d4b UWP: Hotkeys for gamepad plus more time for gamepad discovery (nw) 2016-11-15 16:19:48 -05:00
Brad Hughes
13a496efd7 UWP: Better keyboard key names (nw) 2016-11-15 14:04:28 -05:00
Brad Hughes
0f060802b5 UWP: Enable gamepad support and update keyboard support (nw) 2016-11-14 21:06:42 -05:00
Brad Hughes
00cb280491 UWP: Different default font. Tahoma not available on XBOX (nw) 2016-11-14 20:44:38 -05:00
Brad Hughes
6b390947c7 UWP: Output verbose to debug plus turn off view scaling (nw) 2016-11-14 20:43:40 -05:00
yz70s
84cf1e1108 indent brace (nw) 2016-11-14 20:52:44 +01:00
Miodrag Milanovic
f999805738 Implemented GetFileSize and and proper winrt file open (nw) 2016-11-12 15:42:47 +01:00
Miodrag Milanovic
b73126e85a added OPTION_HOMEPATH to point to read/write folder,for now used by LUA scripts (nw)
Copied all needed files so plugins could be started under UWP
2016-11-12 15:27:22 +01:00
Miodrag Milanovic
b9a6f57494 UWP, added support to store files on Local storage (nw) 2016-11-12 09:42:25 +01:00
Miodrag Milanovic
6b18f90438 Revert "Added IS_ENABLED, so we have compiler check for non used part, it is checked but not compiled in (nw)"
This reverts commit c0407f073b.
2016-11-12 09:12:36 +01:00
Miodrag Milanovic
e71e37e54f Revert "using of IS_ENABLED in files used in tiny build (nw)"
This reverts commit 1efccdd38d.
2016-11-12 09:12:35 +01:00
Brad Hughes
2b6ce2a5c3 Enable sound for UWP (well that was easy) (nw) 2016-11-11 19:03:49 -05:00
Miodrag Milanovic
1efccdd38d using of IS_ENABLED in files used in tiny build (nw) 2016-11-11 20:43:19 +01:00
Brad Hughes
2e49823a06 Add basic keyboard input to UWP (nw) 2016-11-11 12:58:41 -05:00
Miodrag Milanovic
c0407f073b Added IS_ENABLED, so we have compiler check for non used part, it is checked but not compiled in (nw)
false and true now used instead of integer where used as bool
2016-11-11 18:50:14 +01:00
Miodrag Milanovic
172cadfd3e removed not used macros (nw) 2016-11-11 16:20:19 +01:00
Miodrag Milanovic
8dfbb3e6d1 let osd_process_kill just kill, rest is on osd users, watchdog only in this case (nw) 2016-11-11 16:18:21 +01:00
Miodrag Milanovic
0d87fd7cb8 Small cleanup (nw) 2016-11-11 16:12:02 +01:00
Miodrag Milanovic
7c765ea147 No need for osd_malloc, osd_malloc_array and osd_free (nw)
MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
2016-11-11 16:12:01 +01:00
Miodrag Milanovic
5c0edceec3 clipboard handling for uwp (nw) 2016-11-11 16:12:01 +01:00
Miodrag Milanovic
f3b21bd04e simplified memory allocation for osd_module (nw) 2016-11-11 14:03:22 +01:00
Miodrag Milanovic
a9d260cf14 Fixed USE_DISPATCH_GL compile, seams no-one is actually using it since it is broken for a while (nw) 2016-11-11 12:27:44 +01:00
Miodrag Milanovic
d8bf7a88e8 MALLOC_DEBUG part is not able to compile on UWP (nw) 2016-11-11 10:11:16 +01:00
Miodrag Milanovic
dac02ddf8e Cleanup (nw) 2016-11-11 09:50:32 +01:00
Miodrag Milanovic
46fa51e60e move asset files to proper place 2016-11-11 09:43:42 +01:00
AJR
2d969228c6 Unbreak non-Windows builds yet again (nw) 2016-11-10 20:59:00 -05:00
Brad Hughes
477e47ee5f More UWP work - the UI actually renders (nw) 2016-11-10 18:58:22 -05:00
Brad Hughes
bcabf45f08 UWP builds again but by no means working (nw) 2016-11-10 16:26:05 -05:00
Miodrag Milanovic
9c364cdfa9 Adding video and window code to UWP(nw) 2016-11-10 14:53:56 +01:00
Miodrag Milanovic
a18497e7a2 Some more work on UWP (nw) 2016-11-10 13:13:51 +01:00
AJR
f2242fea78 Fix builds without OSD_UWP (nw) 2016-11-09 14:16:02 -05:00
Miodrag Milanovic
cddd8bbe7a Add more UWP support (nw) 2016-11-09 15:44:44 +01:00
Miodrag Milanovic
0d1f5b6be4 Make 3rdparty compile for UWP and start adding new OSD for UWP based on previous Brad work (nw) 2016-11-09 14:53:19 +01:00
Miodrag Milanovic
b80710c868 Make shaders compile dx9 and dx11 only on windows (nw) 2016-11-08 18:17:54 +01:00
Miodrag Milanovic
ce0e6e6a3e Add _WIN32_WINNT so H file could be used and outside OSD section (nw) 2016-11-07 10:37:37 +01:00
Miodrag Milanovic
2027d59e7f Do not use FUNC in delegate where applicable (nw) 2016-11-06 14:11:55 +01:00
ImJezze
51a81ef3aa hlsl: fixed games with off-screen backdrop artworks
- e.g. atarifb, bowler
2016-11-02 21:39:11 +01:00
Miodrag Milanovic
e2d58b6a16 ASIO - header only mode (nw) 2016-11-02 14:34:06 +01:00
therealmogminer@gmail.com
e86a0be234 Compile fix, (nw) 2016-10-31 13:03:14 +01:00
therealmogminer@gmail.com
eee821eecc Kill off another d3d optimization, (nw) 2016-10-31 13:02:22 +01:00
therealmogminer@gmail.com
a9f739df25 Hopefully fix the D3D9 issues people are having (nw) 2016-10-31 11:03:59 +01:00
Jezze
c4b8e48b57 Fixed MT#06417
- cache texture/surface were not released when render target was destructed
2016-10-30 22:22:24 +01:00
R. Belmont
86548bc507 Merge pull request #1557 from ajrhacker/inputdev
Polymorphize input_device and input_class; move to separate source fi…
2016-10-29 20:41:28 -04:00
Branimir Karadžić
a3b4058bf7 Updated BGFX and BX and recompiled shaders (nw) 2016-10-29 09:11:50 +02:00
Justin Kerk
19e9aa6729 Prevent -Wexpansion-to-defined warning in recent Clang (nw) 2016-10-28 21:59:49 +00:00
Vas Crabb
0671e2c044 Merge tag 'mame0179'
Tag for 0.179
2016-10-26 11:43:18 +11:00
Vas Crabb
d9c5fcaf6d final srcclean 2016-10-26 10:47:23 +11:00
Miodrag Milanovic
31127f8613 Fixed linking warning for ASIO (nw) 2016-10-25 20:12:30 +11:00
AJR
99c705f9de Polymorphize input_device and input_class; move to separate source file (nw) 2016-10-24 17:28:35 -04:00
therealmogminer@gmail.com
e01bcfd209 Fix visual corruption introduced a few changelists ago by me, nw 2016-10-24 19:15:46 +02:00
Miodrag Milanovic
60d3061fbc Fixed linking warning for ASIO (nw) 2016-10-24 18:26:10 +02:00
smf-
afee3ba75f fix unused variable error (nw) 2016-10-24 14:51:18 +01:00
Olivier Galibert
e33eb48ad0 SDL: fixed alt-tab from locking up the window system on Linux and Mac. [Hans Ostermeyer] 2016-10-24 10:42:30 +02:00
arbee
d6bb760543 Apollo changes: [Hans Ostermeyer]
- Enable create when non-existing image name is given for omti8621 and sc499

SDL: fixed alt-tab from locking up the window system on Linux and Mac. [Hans Ostermeyer]
2016-10-23 21:56:21 -04:00
therealmogminer@gmail.com
a684594b25 Make d3d9 a little more discerning in what level of bad hardware it will allow, nw 2016-10-23 20:53:07 +02:00
Vas Crabb
129c0feeed srcclean (nw) 2016-10-23 22:36:24 +11:00
Jezze
d9ae40b9fe Reduced defocus effect to one pass (HLSL/BGFX)
- removed second defocus pass
- limited defocus stength to a maximum of 2.0
2016-10-22 22:56:16 +02:00
Jezze
ef16086fea Disabled clearing of render targets in several passes (HLSL)
- which was quite a performance overhead and not necessary because the shaders fill every texel of a target without blending
2016-10-22 22:56:16 +02:00
Jezze
fcba2195bf Fixed null reference exception (D3D/HLSL)
- when toggling from fullscreen to window mode
2016-10-22 22:56:15 +02:00
Jezze
390e6bd43d Refactored d3d_render_target (nw)
* removed cashe_target class
* moved cashe texture and surface to d3d_render_target class
* render targets are now created per screen not per screen texture
* removed useless creation of render targets for ui textures
2016-10-22 22:56:15 +02:00
therealmogminer@gmail.com
e226786d29 -ie15: Improved performance by using a timer to determine hblank. [Ryan Holtz] 2016-10-22 19:13:47 +02:00
Miodrag Milanovic
a3d7454412 final cleanup of TRUE/FALSE, left only in windows section where it represent BOOL (nw) 2016-10-22 19:07:11 +02:00
Miodrag Milanovic
88b5a5c09f Cleanup linux OSD (nw) 2016-10-22 18:42:47 +02:00
Miodrag Milanovic
346a42383e fixed benchmarks build and cleanup U64 and S64 macro definition, it is now in standard (nw) 2016-10-22 14:32:36 +02:00
Miodrag Milanovic
ddb290d5f6 NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
2016-10-22 13:13:17 +02:00
Miodrag Milanovic
2bfd3a6ab2 [[noreturn]] instead of ATTR_NORETURN (nw) 2016-10-22 12:10:50 +02:00
Miodrag Milanovic
23ad94073f use standard types uintptr_t, char16_t and char32_t instead of FPTR, utf16_char, unicode_char (nw) 2016-10-22 11:31:49 +02:00
Miodrag Milanovic
e2f54f5333 Cleanup, TIMER_CALLBACK was only in unused parts (nw) 2016-10-21 16:26:22 +02:00
Miodrag Milanovic
d2e8f61149 dynamic_buffer is just std::vector<UINT8> (nw) 2016-10-21 12:35:05 +02:00
Tomer Verona
f6fdcc918a Merge remote-tracking branch 'mamedev/master' 2016-10-09 21:42:35 -07:00
Tomer Verona
28dfa7ce84 Incorporate product / instance directinput device ids
This change generates a more unique device id for derect input devices
by incorporating the product unique identifier and instance unique
identifier. This allows for better disambiguation on device id when
mapping controllers via mapdevice config settings.
2016-10-09 21:42:29 -07:00
AJR
0e55a0bfc0 Misc. keyboard input improvements
- Add BS, Tab, 00, 000 keys common on add-on keypads as input items; SDL may recognize these, but DirectInput does not
- Assign Keypad 00 and Keypad 000 in several drivers' input lists
- Add SDL keycode for "cancel" key
- Add keypad keys as alternates to natural keyboard
- Move has_keyboard() out of the core; enabled() test is unnecessary now that all optional keyboards are slot devices (nw)
2016-10-08 21:13:12 -04:00
Miodrag Milanovic
3628549385 Added more warning disable to support compile on various clang versions (nw) 2016-10-08 09:37:31 +02:00
Miodrag Milanovic
45aeed2474 Fix for old GCC on this place as well (nw) 2016-10-07 15:17:16 +02:00
Miodrag Milanovic
31c8b10479 Fix compile (nw) 2016-10-07 14:56:47 +02:00
Miodrag Milanovic
c0a5494de5 Replaced code usage of libuv with asio library (nw) 2016-10-07 14:15:01 +02:00
Vas Crabb
9ae59fb76b Merge pull request #1469 from npwoods/new_strconv_overloads
Adding new string conversion overloads
2016-10-05 21:08:28 +11:00
Nathan Woods
85ba2fde28 Bulk renaming of Windows string conversion functions
utf8_from_[a|w|t]string ==> osd::text::from_[a|w|t]string
[a|w|t]string_from_utf8 ==> osd::text::to_[a|w|t]string
2016-10-03 23:20:25 -04:00
Nathan Woods
8e67c061b5 Collapsing string_source class hierarchy 2016-10-03 21:50:09 -04:00
Nathan Woods
6549ec8ccf Eliminated virtual function use in strconv.cpp
Take note that in practice, this does not actually change the compiled code because the optimizer should be smart enough to remove the need for vtable lookups as a part of optimization (this is definitely true for MinGW).  If you really prefer, I can collapse the class hierarchy into a single templated class that just has overloaded constructors - this also doesn't actually change the compiled code, but I can make the change if you wish.
2016-10-03 21:50:04 -04:00
Nathan Woods
314a7e7906 Fixing const-ness on prototypes 2016-10-03 21:49:58 -04:00
Brad Hughes
3e39547742 Fix two leaks (nw) 2016-10-03 16:51:05 -04:00
Brad Hughes
d4b8b48127 Fix use of uninitialized stack memory in drawd3d.cpp (nw) 2016-10-03 13:45:10 -04:00
Nathan Woods
8695bdac87 Refactored to eliminate duplicate logic, sidestepped concerns about writing NUL into NUL terminator byte in std::[w]string 2016-10-02 12:43:09 -04:00
Nathan Woods
c0ff37c30d Adding new string conversion overloads
[a|w|t|utf8]_from_[a|w|t|utf8_]string(xyz.c_str()) seems to be common enough to justify overloads.  Also, I'm explicitly assuming that it is legal to override the NUL pointer within a C++ basic_string (e.g. - s[s.size()] = '\0').  As far as I can tell, this seems to be legal - please don't shoot if I am wrong.
2016-10-01 14:53:32 -04:00
Brad Hughes
d08fa3dde6 win32_output: Register window messages before creating window (nw) 2016-09-30 09:53:52 -04:00
Brad Hughes
3ed5ea1020 We ran out of room for OSD modules (nw) 2016-09-30 01:11:11 -04:00
Jezze
68036515ba Fixed aspect ratio of rounded corners (nw) 2016-09-29 15:19:44 +02:00
Vas Crabb
d7a9eeb64f use floorf rather than floor for float->float 2016-09-28 23:57:34 +10:00