Commit Graph

1658 Commits

Author SHA1 Message Date
Oliver Stöneberg
a841aa4054 removed cpu mask and thread affinity code from src/osd/sdl/sdlwork.c as suggested by couriersud (nw) 2014-09-20 08:40:48 +00:00
R. Belmont
32288a9f08 SDL: use Windows OSD's font-selection semantics for SDL Windows builds. [R. Belmont] 2014-09-14 15:44:26 +00:00
Oliver Stöneberg
1a610ff531 more sdlwork.c and winwork.c consolidation / SDL now supports envrionment variable OSDWORKQUEUEMAXTHREADS (nw) 2014-09-13 19:59:51 +00:00
Oliver Stöneberg
f4d61505ee more work to make sdlwork.c and winwork.c match / un-broke Windows SDL build by completely moving the sdlsync_win32.c code to winsync.c (nw) 2014-09-13 19:44:41 +00:00
Oliver Stöneberg
5f7dbbad6b added comment to sdlsync_win32.c (nw) 2014-09-13 10:23:46 +00:00
Oliver Stöneberg
6232bc0e50 more work to make sdlwork.c and winwork.c match (nw) 2014-09-13 10:23:17 +00:00
Oliver Stöneberg
f176a45d35 a bit more work to match sdlwork.c and winwork.c (nw) 2014-09-13 10:16:28 +00:00
Oliver Stöneberg
4d5cd61765 some refactoring to make SDL and Windows OSD code match / Windows SDL code did not delete the critical section in osd_scalable_lock_free() (nw) 2014-09-13 10:04:16 +00:00
Oliver Stöneberg
0f15f0ab00 renamed YieldProcessor() to osd_yield_processor() to match SDL more closely (nw) 2014-09-13 09:09:29 +00:00
R. Belmont
3a2f2aea25 SDL: fix Windows builds with SDL 1.2 (nw) 2014-09-13 01:45:45 +00:00
R. Belmont
8f2f9485d9 SDL: -sound dsound now works with SDL (nw) 2014-09-12 02:51:50 +00:00
R. Belmont
1527f5ca82 SDL: more attempts (nw) 2014-09-12 02:44:11 +00:00
R. Belmont
5191d3e9c7 SDL: More dsound adaptation (nw) 2014-09-12 02:33:25 +00:00
R. Belmont
0ebffa0620 Fixes to try and make direct_sound work minus WinOSD (nw) 2014-09-12 02:07:46 +00:00
R. Belmont
d488f52c17 SDL: Allow -sound dsound on SDL Windows builds. [R. Belmont] 2014-09-12 01:18:35 +00:00
Oliver Stöneberg
3568cf772f fixed most of the -Wunreachable-code-break and -Wunreachable-code-return warnings of clang 3.5 when compiling MESS (nw) 2014-09-08 12:00:45 +00:00
R. Belmont
bbd14ca947 not quite yet (nw) 2014-09-04 02:38:10 +00:00
R. Belmont
7d874efba8 SDL: reenable SDL_ttf for SDL2 builds (nw) 2014-09-04 02:26:43 +00:00
R. Belmont
61f8d45d62 SDL: Use the same screen selection method for SDL2 as Windows. [R. Belmont] 2014-09-03 02:26:15 +00:00
R. Belmont
075268f0fd SDL: more OS X fixes for SDL2. (nw) 2014-09-03 01:58:02 +00:00
R. Belmont
eea0414478 SDL: link properly on OS X for SDL2. [R. Belmont] 2014-09-03 01:20:39 +00:00
Miodrag Milanovic
af061e6e94 Support for SDL2 builds on win32 2014-09-02 09:01:11 +00:00
Miodrag Milanovic
ba2f3c2814 Let's static link SDL on win32 build (nw) 2014-09-02 08:35:09 +00:00
R. Belmont
6be086cf7e SDL: remove dead code from SDL2 renderer, fix laserdisc crash with SDL2 -video accel rendering. [R. Belmont] 2014-09-02 02:08:13 +00:00
R. Belmont
4631c02ca0 SDL: More cleanups. (nw) 2014-09-01 22:38:35 +00:00
Miodrag Milanovic
57b389311f Added window to osd_interface (nw)
win_monitor_info to class 
win_window_info to class, partial
2014-09-01 08:58:33 +00:00
R. Belmont
923cbc2648 SDL: remove more dead code from the GL paths (nw) 2014-09-01 02:09:38 +00:00
R. Belmont
20e7944065 SDL: init timebase the first time it's needed on Windows, Mac, and OS/2 targets. [R. Belmont] 2014-09-01 01:55:58 +00:00
R. Belmont
dad3fa9540 (nw) 2014-08-31 21:52:19 +00:00
R. Belmont
ada89eb11d SDL: fall through to the baseline Win32 implementations for file, socket, and pty/named pipe I/O. [R. Belmont]
nw: This fixes laserdisc games and enables socket and named pipe I/O in SDL Windows builds.
2014-08-31 20:55:48 +00:00
R. Belmont
5dfe8ac485 SDL: don't require -str to enable watchdog (nw) 2014-08-26 02:11:29 +00:00
R. Belmont
822166b6ec SDL: update manpages [Cesare Falco] 2014-08-15 03:24:23 +00:00
Miodrag Milanovic
79246ab917 More cleanups, there is issue with srcclean that needs to be taken care as well, just doing now what we can 2014-07-22 06:21:54 +00:00
Miodrag Milanovic
5d7e1fcc62 Cleanups and version bump 2014-07-22 06:14:55 +00:00
Justin Kerk
c4e9058ee2 [JSMESS] Add shim for Web Audio sound module [Katelyn Gadd, Justin Kerk] 2014-07-22 04:51:52 +00:00
Michaël Banaan Ananas
b87fd679b4 ok nevermind 2014-07-19 00:50:11 +00:00
Michaël Banaan Ananas
1963c020ea AvSetMmThreadCharacteristics and friends, this has been commented out since before 2007 2014-07-18 19:49:19 +00:00
Michaël Banaan Ananas
307c7aeeef don't use timeBeginPeriod if options.sleep is enabled 2014-07-18 19:39:27 +00:00
Wilbert Pol
489aa4aca9 RB's better fix for silencing a compiler warning (nw) 2014-07-17 18:46:50 +00:00
Wilbert Pol
a2f77fe9dd silence compiler warning (nw) 2014-07-17 18:26:59 +00:00
R. Belmont
1ecab6cb9a SDL: rebuild all GL textures when the core changes resolutions. [R. Belmont] 2014-07-17 03:51:46 +00:00
Oliver Stöneberg
614e3cea22 vconv: map /O3 to /Ox (nw) 2014-07-02 13:46:13 +00:00
Oliver Stöneberg
273542f27d implemented ATTR_FORCE_INLINE for Visual Studio (nw) 2014-06-30 08:55:17 +00:00
R. Belmont
90c4bfb799 (MESS) osdcore: Allow "default" for -midiin and -midiout. [R. Belmont] 2014-06-28 01:39:55 +00:00
Scott Stone
a72a335d03 Fixed up label/different hash instance with recent addition. (nw)
Reworded HLSL error message to best describe reason for failure.  (nw)
2014-06-25 21:51:23 +00:00
R. Belmont
d899e20c9b SDL: Always supply screen size uniforms to GLSL shaders, and fix bug with X multihead. [R. Belmont] 2014-06-14 19:10:40 +00:00
Alex W. Jackson
f661e32ec8 Change remaining references to -nosound to -sound none in code and docs; move description of -sound option to OSD-specific doc files to be orthogonal to -video (nw) 2014-06-13 21:01:35 +00:00
Oliver Stöneberg
e5384e1163 fixed -j compilation with VS2013 [Oliver Stöneberg] 2014-06-12 09:40:49 +00:00
R. Belmont
ead56f4d3c SDL: fix -prescale 0.153 regression. [R. Belmont] 2014-06-12 03:11:37 +00:00
R. Belmont
5c20115534 SDL: Fix shaders for games that output indexed16 (e.g. pacman). [R. Belmont] 2014-06-11 03:37:23 +00:00
R. Belmont
b33377d0b1 SDL: fix 0.153 regression where user GLSL shaders didn't work. [R. Belmont] 2014-06-11 02:45:49 +00:00
R. Belmont
bf70eebc2b debugqt: Un-revert and add fix for focus seizure [Carl] 2014-05-24 03:32:55 +00:00
R. Belmont
04139b9d8b Reverted 30626, it trashes Linux multi-desktop setups. 2014-05-24 02:32:41 +00:00
R. Belmont
5305ed398f debugqt: Fix 'source' capability. [Happy] 2014-05-23 20:50:16 +00:00
Alex W. Jackson
7a0aa6c75a sdl: properly disable sound on -bench runs (nw) 2014-05-21 19:31:24 +00:00
Couriersud
168640c700 Left a comment that GL_FRAMEBUFFER_SRGB is supported by SDL2. 2014-05-18 00:46:09 +00:00
Couriersud
5ff6ac66a9 Left a "FIXME" too remind me later, that gamma needs attention in MAME. 2014-05-17 23:57:18 +00:00
Oliver Stöneberg
833c255154 use -fno-optimize-sibling-calls with SYMBOLS=1 for more complete stack traces with optimizations (nw) 2014-05-17 19:47:30 +00:00
Oliver Stöneberg
96522aaddf fixed some memory leaks in osd (nw) 2014-05-14 07:29:51 +00:00
Couriersud
bfcd6dc8d2 Fix SDL2 compile. 2014-05-09 14:16:08 +00:00
Miodrag Milanovic
5548f9e15d This fixes strange issue we have with sound not working in some cases
need to look closer what is causing issue (nw)
2014-05-09 13:24:26 +00:00
Miodrag Milanovic
b4781a98eb there was old name here (nw) 2014-05-09 09:43:24 +00:00
Miodrag Milanovic
7e145718ea same fix for sdl build (nw) 2014-05-08 15:07:00 +00:00
Miodrag Milanovic
888093a5c2 For windows auto is now same as d3d, till video part is redone (nw) 2014-05-08 14:59:31 +00:00
Miodrag Milanovic
964dc0c7c1 OSX fix (nw) 2014-05-08 14:44:48 +00:00
Miodrag Milanovic
04ab4108ba osx compile fix (nw) 2014-05-08 14:41:07 +00:00
Miodrag Milanovic
729f1c569d fix internal debugger memory handling (nw) 2014-05-08 09:20:47 +00:00
Miodrag Milanovic
f2c54ef73e fix warning (nw) 2014-05-08 08:51:05 +00:00
Miodrag Milanovic
69faaf3aeb -Reorganized OSD, handling more sound output systems and debuggers, defaults left same as before [Miodrag Milanovic]
-Created osd_options as base option class for non-system specific options
2014-05-08 07:39:04 +00:00
Miodrag Milanovic
cff20637eb Fix osd_printf_debug regression, replace gone wrong :) (nw) 2014-05-07 07:07:04 +00:00
Miodrag Milanovic
d034eefcb5 Merged in cleanup changes from osd branch (nw) 2014-04-26 13:35:06 +00:00
Miodrag Milanovic
c0cd48a3f2 Removed dependency on pmmidi.inc (nw) 2014-04-26 05:43:40 +00:00
Miodrag Milanovic
417174ab64 ah (nw) 2014-04-25 09:31:16 +00:00
Miodrag Milanovic
1841cd1321 compile fix (nw) 2014-04-25 09:11:49 +00:00
Miodrag Milanovic
f8f3d68187 -Made osd_interface base class for OSD and moved initialization for each subsystem in it as virtual calls. (nw)
-Moved midi handling in base class
-Cleaned running_machine of information of next machine
-All is cleaned after exiting of running_machine so debugger window is removed as well till next machine is started
-Made osdmini to compile
2014-04-25 07:31:27 +00:00
Miodrag Milanovic
452df5037b reverting to classic ui due to lot of issues, as much as I hate reverting some else code (nw) 2014-04-17 06:27:03 +00:00
smf-
23424647d3 Use the correct call to free memory in windows osd_close [smf] 2014-04-16 15:57:38 +00:00
Miodrag Milanovic
c76edcc8d8 we anyway do not support win95 for a time :) (nw) 2014-04-16 14:05:50 +00:00
Nathan Woods
f546afadef ScrLock no longer is a menu key; it will now enable/disable keyboard menu shortcuts 2014-04-16 11:57:13 +00:00
Miodrag Milanovic
67663501d7 Moved eminline and related files into /src/osd since it's system related (nw)
Moved delegates into /src/lib/util to enable usage of delegates in other project parts

Moved mame_printf_* calls into /src/osd/osdcore.c and renamed them to osd_printf_* 

Changed mess.mak to display compilation of ymmu100.ppm nicely
2014-04-16 08:04:20 +00:00
Miodrag Milanovic
0c727fc6d3 Small core cleanup (nw) 2014-04-15 11:14:46 +00:00
Couriersud
69a68387ba Fix transparency in SDL2.0 code. [Couriersud] 2014-04-13 23:31:51 +00:00
R. Belmont
1e197e432d SDL: fix OS X compile with non-official SDL [R. Belmont, based on a patch by Fernando Lemos] 2014-04-13 16:38:54 +00:00
Nathan Woods
24026e123e Merge of new menubar code 2014-04-12 20:52:03 +00:00
Ryan Holtz
c3f1015d14 - Fixed bloom misalignment with HLSL. [MooglyGuy] 2014-04-08 18:34:47 +00:00
Oliver Stöneberg
eeb9af72ee added/updated some vconv TODOs (nw) 2014-04-07 09:41:28 +00:00
Miodrag Milanovic
fec65e0b57 Cleanups and version bump 2014-04-07 06:04:18 +00:00
Michaël Banaan Ananas
32f79db380 rm unused colortable 2014-04-05 06:32:27 +00:00
Michaël Banaan Ananas
16b55173a6 fix compiler warning? 2014-04-04 17:12:39 +00:00
Oliver Stöneberg
8ec22b181c a few adjustments for Visual Studio analysis (nw) 2014-04-04 08:09:02 +00:00
Oliver Stöneberg
fb8b975904 disabled some Visual Studio analysis warnings / fixed some obvious errors based on analysis output (-video gdi works again) (nw) 2014-04-03 20:16:50 +00:00
Miodrag Milanovic
c43e09d4ae here ya go :) (nw) 2014-03-31 12:00:06 +00:00
Miodrag Milanovic
b34cc238d9 updated vconv for no-sign-compare (nw) 2014-03-31 10:26:26 +00:00
Miodrag Milanovic
de513a0f98 reverting, sorry for this vconv needs to be updated (nw) 2014-03-31 10:23:22 +00:00
Miodrag Milanovic
2cc9ca4c5e VS2013 x64 is little bit more anal about signed/unsigned comparison (nw) 2014-03-31 10:06:05 +00:00
Miodrag Milanovic
b297c61ebd made MAME and MESS compile under VS2013, 32bit only for now (nw)
OG: please check things in H8 core, thing in timer16 can caused some issues in past
2014-03-31 08:29:30 +00:00
Oliver Stöneberg
136b5bb9ae vcconv: handle -msse and added a TODO about a changed behavior in VS2012 (nw) 2014-03-30 14:28:53 +00:00
Oliver Stöneberg
3ee1ea2a77 just use core_strdup() in osd_get_full_path() in src/osd/osdmini/minifile.c (nw) 2014-03-30 14:27:28 +00:00
Miodrag Milanovic
f708e7460f making code compiles and work on mingw 32 bit on versions 4.7.x and 4.8.x (nw) 2014-03-30 11:10:39 +00:00
Oliver Stöneberg
75f2734a41 some comments (nw) 2014-03-24 22:27:38 +00:00
Oliver Stöneberg
2e5ea37f65 removed mame_* aliases and just use core_* functions (nw) 2014-03-24 22:05:08 +00:00
Oliver Stöneberg
b52f668f13 some mismatched malloc/free usage with osd_* functions (nw) 2014-03-24 21:44:43 +00:00
R. Belmont
49ddc13379 always a Clang (nw) 2014-03-21 01:54:42 +00:00
R. Belmont
f34d59a8d5 SDL: Next stage cleanup, aligned texture conversion with current Windows/D3D code, and fixed overzealous GL texture caching. [R. Belmont]
nw: this fixes brightness/gamma/contrast on RGB32 format games (which has been broken since 2008, clearly a well-loved feature ;-) and breaks prescale.  Prescale will be fixed soon.
2014-03-21 01:51:58 +00:00
R. Belmont
e47402134e Clang (nt) 2014-03-20 02:31:03 +00:00
R. Belmont
ebb2351c9a SDL: Removed "totalColors" hack, now only RGB32 is sent to the GPU. [R. Belmont]
nw: there's much, much more cleanup to be done now, but this serves as a functional baseline.
2014-03-20 01:54:32 +00:00
Oliver Stöneberg
60bc937648 renamed pmmidi.c to pmmidi.inc 2014-03-19 17:33:10 +00:00
Oliver Stöneberg
690cd1a3a1 renamed rendersw.c to rendersw.inc 2014-03-19 17:18:56 +00:00
Oliver Stöneberg
1907b48643 and more global_free() -> global_free_array()(nw) 2014-03-17 17:15:03 +00:00
Oliver Stöneberg
01271d3f4d more global_free() -> global_free_array() in src/osd/sdl/drawsdl.c (nw) 2014-03-17 17:04:21 +00:00
Miodrag Milanovic
a66aff27d6 primary_screen -> first_screen() (nw) 2014-03-15 13:00:23 +00:00
Oliver Stöneberg
8a80285891 removed unnecessary quoting for -DDISABLE_MIDI=1 (nw) 2014-03-12 15:53:45 +00:00
Oliver Stöneberg
41251f0b34 global_free() -> global_free_array() in src/osd/sdl/drawsdl.c (nw) 2014-03-12 10:56:30 +00:00
Justin Kerk
c521b8b150 Silence more clang warnings (nw) 2014-03-12 01:54:18 +00:00
Wilbert Pol
621083947c Fixed OSX debugger and clang compile fix (nw) 2014-03-11 20:28:47 +00:00
Miodrag Milanovic
4c3dd33d93 fix for stream_buffer free (nw) 2014-03-11 19:48:14 +00:00
Aaron Giles
4ea9df02a1 Moved core template container classes up from emutempl.h to coretmpl.h:
[Aaron Giles]
 * these classes now no longer take a resource_pool; everything is
    managed globally -- this means that objects added to lists must be
    allocated with global_alloc
 * added new auto_pointer<> template which wraps a pointer and auto-frees
    it upon destruction; it also defaults to NULL so it doesn't need to
    be explicitly initialized
 * moved tagged_list template to tagmap.h

Redo of the low-level memory tracking system: [Aaron Giles]
 * moved low-level tracking out of emu\emualloc into lib\util\corealloc
    so it can be shared among all components and used by core libraries
 * global_alloc and friends no longer use a resource pool to track
    allocations; turns out this was a wholly redundant system that wasted
    a lot of memory
 * removed global_resource_pool entirely
 * added global_free_array to delete arrays allocated with 
    global_alloc_array
 * added tracking of object versus array allocation; we will now error
    if you use global_free on an array, or global_free_array on an object

Added new utility helper const_string_pool which can be used to 
efficiently accumulate strings that are not intended to be modified.
Used by updated makelist and software list code. [Aaron Giles]

Updated png2bdc and makelist tools to not leak memory and use more modern
techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles]

Deprecated auto_strdup and removed all uses by way of caller-managed 
astrings and the software list rewrite. [Aaron Giles]

Rewrote software list management: [Aaron Giles]
 * removed the notion of a software_list that is separate from a
    software_list_device; they are one and the same now
 * moved several functions into device_image_interface since they really
    didn't belong in the core software list class
 * lots of simplification as a result of the above changes

Additional notes (no whatsnew):

Moved definition of FPTR to osdcomm.h.

Some changes happened in the OSD code to fix issues, especially regarding
freeing arrays. SDL folks may need to fix up some of these.

The following devices still are using tokens and should be modernized
(I found them because they kept their token as void * and tried to
delete it, which you can't):

namco_52xx_device (mame/audio/namco52.c)
namco_54xx_device (mame/audio/namco54.c)
namco_06xx_device (mame/machine/namco06.c)
namco_50xx_device (mame/machine/namco50.c)
namco_51xx_device (mame/machine/namco51.c)
namco_53xx_device (mame/machine/namco53.c)
voodoo_device (emu/video/voodoo.c)
mos6581_device (emu/sound/mos6581.c)
aica_device (emu/sound/aica.c)
scsp_device (emu/sound/scsp.c)
dmadac_sound_device (emu/sound/dmadac.c)
s3c2440_device (emu/machine/s3c2440.c)
wd1770_device (emu/machine/wd17xx.c)
latch8_device (emu/machine/latch8.c)
duart68681_device (emu/machine/68681.c)
s3c2400_device (emu/machine/s3c2400.c)
s3c2410_device (emu/machine/s3c2410.c)
strataflash_device (mess/machine/strata.c)
hd63450_device (mess/machine/hd63450.c)
tap_990_device (mess/machine/ti99/990_tap.c)
omti8621_device (mess/machine/omti8621.c)
vdt911_device (mess/video/911_vdt.c)
apollo_graphics_15i (mess/video/apollo.c)
asr733_device (mess/video/733_asr.c)
2014-03-11 15:54:58 +00:00
Olivier Galibert
72c4cc20f8 Add an osd_truncate call to truncate files [O. Galibert] 2014-03-11 09:19:17 +00:00
Oliver Stöneberg
d10ce2efeb removed obsolete include and corrected SDLMAME_ARCH quoting in sdl.mak (nw) 2014-03-10 16:18:44 +00:00
Oliver Stöneberg
f3e7bd7fd2 added a few more missing \n in logging / cleanups (nw) 2014-03-10 16:17:31 +00:00
R. Belmont
6f5179e975 Fix compiling on unusual OS X configurations. [Robert Walsh] 2014-03-03 02:23:04 +00:00
Oliver Stöneberg
2726675591 moved compiler-specific warning generation to shared files (nw) 2014-03-02 16:17:12 +00:00
Miodrag Milanovic
af456e80c8 proper sdl fix (nw) 2014-02-27 14:04:50 +00:00
Miodrag Milanovic
ffb3e2dcc1 fix for sdl (nw) 2014-02-27 13:56:29 +00:00
Oliver Stöneberg
23b37789fd fixed #if checks for Visual Studio in osd/osdcomm.h (nw) 2014-02-26 10:07:14 +00:00
Oliver Stöneberg
4f4d91429d fixed 32-bit compilation (nw) 2014-02-26 00:32:06 +00:00
Oliver Stöneberg
aa785afb99 first round of printf fixes (nw) 2014-02-25 11:55:35 +00:00
R. Belmont
3aa2d8f1e2 SDL: Cleaned up some warnings (nw) 2014-02-22 17:58:49 +00:00
Oliver Stöneberg
0b87253528 fixed bug in default font handling for OSX (nw) 2014-02-22 11:46:44 +00:00
Oliver Stöneberg
3138b2c660 second round of clang 3.4 fixes for MESS (nw) 2014-02-20 18:18:29 +00:00
R. Belmont
5b20b80e72 Fix SDL 2.0 build (nw) 2014-02-19 14:50:26 +00:00
Miodrag Milanovic
ca932a6d3d fix SDL build (nw) 2014-02-19 11:07:33 +00:00
Aaron Giles
57cfaa163e Switched rgb_t to a class, replacing macros with methods. Mappings are
as follows:

   MAKE_RGB(r,g,b)     == rgb_t(r,g,b)
   MAKE_ARGB(a,r,g,b)  == rgb_t(a,r,g,b)
   RGB_ALPHA(data)     == data.a()
   RGB_RED(data)       == data.r()
   RGB_GREEN(data)     == data.g()
   RGB_BLUE(data)      == data.b()
   RGB_BLACK           == rgb_t::black
   RGB_WHITE           == rgb_t::white

Implicit conversions to/from UINT32 are built in as well as simple
addition, subtraction, and scaling (with clamping).

As a result of being a class, some stricter typing was needed in
a few places but overall not too much.
2014-02-19 06:07:32 +00:00
Justin Kerk
e5e7dc5b61 [JSMESS] Use emscripten_get_now() instead of gettimeofday() [clb] (nw) 2014-02-13 06:05:58 +00:00
Nathan Woods
e92dab9e34 Changed how NULL callbacks are specified on win_draw_callbacks 2014-02-08 14:19:00 +00:00
Nathan Woods
93375c26c4 Adopted 'bool' type 2014-02-05 10:44:47 +00:00
Miodrag Milanovic
c859a6332e fix for sdl compile (nw) 2014-01-29 16:45:35 +00:00
Nathan Woods
fb7edb68c6 Moved src/emu/ui.? ==> src/emu/ui/ui.?, changed to follow MAME OOP conventions; we now have a ui_manager class 2014-01-29 11:47:56 +00:00
Scott Stone
aa896515a0 This revert (r26927), as requested by author, fixes the regression of missing graphics for vector games using HLSL. Also reverted patch in code (r27063) to deal with "roundf" for pre-vs2013 compilers - which is no longer needed. (nw) 2014-01-24 00:30:29 +00:00
R. Belmont
8b24187ca7 SDL: Temporarily restore compatibility with Qt versions below 4.7. [R. Belmont] 2014-01-15 03:31:34 +00:00
smf-
f28670c9e0 Fixed compiling with Visual Studio 2012 [smf] 2014-01-11 16:04:43 +00:00
Miodrag Milanovic
6b25cfe5a8 add support to compile windows builds with gcc 4.8.2 x64 only produce working code (nw) 2014-01-10 08:20:37 +00:00
Ryan Holtz
3312b67f93 - Fix for pixel gaps between multi-screen games in HLSL mode. [MooglyGuy] 2014-01-04 03:17:31 +00:00
Couriersud
114c8d18eb SDL2.0: Fix relative mouse motion. This makes Missile Attack playable again with my Logitech marble trackball. [Couriersud] 2014-01-01 17:18:51 +00:00
R. Belmont
82b77f00a4 (nw) 2013-12-30 11:52:07 +00:00
Jonathan Gevaryahu
a36d348683 revert stuff that probably wasn't intentionally committed. (n/w) 2013-12-29 03:57:41 +00:00
R. Belmont
d85b240903 SDL: fix build (nw) 2013-12-29 02:09:26 +00:00
Couriersud
5fc9d0703a Netlist, make some class variables protected. No wn 2013-12-28 14:57:22 +00:00
Miodrag Milanovic
ca546caa6e Cleanups and version bump 2013-12-24 07:24:51 +00:00
R. Belmont
409a4b02d7 SDL: slightly more inclusive ARM check (nw) 2013-12-22 22:25:27 +00:00
Michaël Banaan Ananas
da478ac3c3 fix WM_SYSCOMMAND wparam mask 2013-12-21 21:18:08 +00:00
smf-
297064c46d re-added /wd4250 /wd4435 that was removed in r26650, to allow building with visual studio again. (nw) 2013-12-19 21:50:53 +00:00
David Haywood
34b11e6989 allow building with ICL on Windows if you have it installed into MSVC [Dean London]
The ICL compiler on Windows installs over MSVC and piggybacks onto the build tools Microsoft provide.  To enable compilation use USE_ICL=1 when compiling with MSVC_BUILD=1 (from the ICL enabled command prompt)

 + gives a more stable build than the MSVC compiler
 + more informative compile errors when using ICL compared to MSVC compiler
 + can still use MSVC debugging tools (better than GCC)
 + can use additional intel tools etc.
 - build is still slower than GCC one

out of whatsnew:
I've cleaned up this submission a fair bit, could maybe be cleaned a little more, but it's much better than what I was sent.  Looking at the list of additional warnings that ICL requires to be disables reveals some to be mundane (and could probably be fixed in the source, eg. the way it doesn't like the hng64.c commenting style) whereas others look like they might be legitimate (and useful) warnings about problems we should look into.

I briefly tested this with VC2013 + Patch 1 RC and the current ICL, it appears to build and run fine.
2013-12-18 14:54:08 +00:00
Michaël Banaan Ananas
87f19ee379 Windows: Fixed D3D multimonitor support. [GroovyMAME] 2013-12-16 16:08:45 +00:00
Michaël Banaan Ananas
d466a09b8b basically an update to r26433
- moved all windows-only input "NOT" rules to osd/windows
- changed windows fullscreen video from alt-f11 to shift-alt-f12
- added windows fullscreen toggle ralt-enter (heh, i didn't know that ((A AND B) OR (A AND C)) rules were possible)
2013-12-14 17:45:44 +00:00
Justin Kerk
8420457afe Remove fstat hack no longer needed with current emscripten (nw) 2013-12-07 08:48:43 +00:00
Justin Kerk
d36fb89128 Fix JSMESS build on Ubuntu 12.10 (nw)
thanks to Vito for debugging this
2013-11-29 07:26:38 +00:00
Jürgen Buchmüller
7b202ee115 Use QPainter::drawStaticText() to render strings with the same attribute. 2013-11-24 10:17:13 +00:00
Angelo Salese
a29afc099d Typo 2013-11-18 13:34:52 +00:00
R. Belmont
b5556208b0 Final fix: MAME builds warning-free on PowerPC OS X again (nw) 2013-11-16 22:43:56 +00:00
R. Belmont
cf674f39cc SDL: fix non-Qt non-Windows build (MT #5364) [R. Belmont] 2013-11-14 03:58:10 +00:00
Michaël Banaan Ananas
ae2f75974f batch vectors at the right time in queue 2013-11-11 18:53:55 +00:00
Miodrag Milanovic
44d5c1b8ab Cleanups and version bump 2013-11-05 06:59:51 +00:00
Justin Kerk
fe5ac3c0fd Split up the construct_core_types() monster, other JSMESS tweaks (nw) 2013-11-03 22:07:20 +00:00
Justin Kerk
1d7002416e Simplify SDL file changes (nw)
I'm assuming the /work/src/m/sdl stuff is someone's testing leftover; it was added in r19797
2013-11-03 04:30:42 +00:00
Justin Kerk
cdc51864b0 Upstream changes needed to compile JSMESS [Justin Kerk, John Vilk, Justin de Vesine]
Out of whatsnew: there are still a few files being worked on, and the build scripts which are currently set up outside of the MAME source hierarchy. Always open to cleaner ways of doing things.
2013-11-03 01:42:33 +00:00
smf-
db806d8476 Added a hack to allow you to limit the number of threads per work queue (all other limits still apply). If you set this to 0 then chdman doesn't hang. [smf] 2013-11-02 12:34:02 +00:00
Justin Kerk
d703d6a0c1 More SDL header fixes for clang / emscripten (nw) 2013-11-01 04:31:11 +00:00
Michaël Banaan Ananas
539241d2e3 revert attempted fix for color overlays not working on vector games, this fixes MT issues 05324 and 05332, and breaks 05214 again 2013-10-28 20:23:13 +00:00
Michaël Banaan Ananas
5a9085c8a8 fix hlsl bloom drawing onto the prev frame if artwork backdrop is used (note: bug effect was not visible due to MT bug 05332) 2013-10-28 20:14:42 +00:00
Justin Kerk
6aceeec86c Still need the stub functions from debugwin.c for the NO_DEBUGGER case (nw) 2013-10-28 05:59:36 +00:00
Couriersud
58c8d37e46 SDL: Fixed testkeys utility to compile with SDL2.0
What a pity that neither multiple mice nor multiple keyboards made it into SDL2.0 :-(
2013-10-26 19:47:58 +00:00
Couriersud
3b62d6c85b SDL: Fixed a logging bug. 2013-10-26 19:46:19 +00:00
Michaël Banaan Ananas
88cd9b09b7 (Windows) add higher resolution icons for mame/mess. These were made available by JacKc a few months ago. I don't mean to imply that they are 'official', they may be replaced later. 2013-10-26 16:28:50 +00:00
Alex W. Jackson
9998681885 SDL: Fix SDL1 build (nw) 2013-10-26 11:57:38 +00:00
R. Belmont
0b159718d3 Whoops (nw) 2013-10-26 03:20:21 +00:00
R. Belmont
f710a1b48c SDL: disable TrueType support for SDL2 builds for now. (nw) 2013-10-26 03:19:45 +00:00
R. Belmont
8679ca14bc SDL: Fix joystick to work with final SDL 2.0 (nw) 2013-10-26 03:16:12 +00:00
R. Belmont
a353507925 SDL: Remove deprecated GTK+ debugger. [R. Belmont] 2013-10-25 02:53:57 +00:00
R. Belmont
4e8a1289bd SDL: add SDL_FRAMEWORK_PATH option to control where SDL is installed on OS X plus OS X 10.9 support. Started removing deprecated GTK+ debugger. [R. Belmont, Balrog] 2013-10-25 02:27:31 +00:00
R. Belmont
47c548e760 SDL: OS/2 build fixes [KO Myung-Hun] 2013-10-22 13:36:20 +00:00
Jonathan Gevaryahu
7ec7aae5bd I messed the copyrights and licenses up on these before, thanks to arbee for pointing it out (n/w) 2013-10-21 03:26:59 +00:00
R. Belmont
9a6193eca6 winfile: Allow write-only files to be opened by external programs while MAME still has them open (matches POSIX semantics, useful for log files) [Firehawke]
nw: This was approved by Aaron.
2013-10-20 05:23:32 +00:00
Jonathan Gevaryahu
ef3e92fcc3 Vas Crabb, from Bannister Shoutbox: "...feel free to re-license my contributions as BSD. The files that I wrote from scratch would be eigccppc.h, eigccx86.h, rgbvmx.h, osxutils.*, and the Cocoa debugger." 2013-10-16 18:54:37 +00:00
Aaron Giles
5d0ce54f9e Bulk convert files that already had standard BSD license in my name
to new license tagged form.
2013-10-16 08:14:49 +00:00
Michaël Banaan Ananas
28db1b5f2d fixed vector games black screen with hlsl 2013-10-06 21:09:15 +00:00
Michaël Banaan Ananas
ac0df6a72b turn Windows multithreaded blit off by default: shows gfx glitches in drivers with indexed palette otherwise 2013-10-06 15:56:21 +00:00
R. Belmont
8ac006b5ff SDL: updated man pages [Cesare Falco] 2013-10-04 02:56:29 +00:00
Oliver Stöneberg
3ea1274cf2 reverted changes to src/osd/windows/winprefix.h (nw) 2013-09-24 16:12:42 +00:00
Oliver Stöneberg
c7ab29151c removed unused macro from src/osd/windows/winprefix.h (nw) 2013-09-24 14:56:46 +00:00
R. Belmont
f9b6a0d8f4 Better Clang support, necessary for Xcode 5.0 on OS X [R. Belmont] 2013-09-22 03:08:59 +00:00
R. Belmont
6bffcc2984 SDL: work around incorrect warning generated by Clang [R. Belmont] 2013-09-22 02:39:30 +00:00
smf-
0839767cb3 Use virtual multiple inheritance to share command processing between SCSI & ATAPI instead of having a SCSI subdevice. This allows matsushita_cr589_device & gdrom_device to derive from atapi_cdrom_device. [smf] 2013-09-17 18:23:52 +00:00
Miodrag Milanovic
96aa5e1c08 Cleanups and version bump 2013-09-17 06:47:03 +00:00
Oliver Stöneberg
8804211827 removed unused private member from src/osd/windows/d3dcomm.h (nw) 2013-09-10 10:17:08 +00:00
R. Belmont
a868bc0dbd (nw) 2013-09-09 04:10:06 +00:00
Oliver Stöneberg
07b93f1fe4 some small tweaks for Rasberry Pi out-of-the-box compilation experience (nw) 2013-09-08 17:05:52 +00:00
Oliver Stöneberg
4492240b14 fixed potential memory leak in win_open_ptty() (nw) 2013-09-08 16:28:28 +00:00
Ryan Holtz
db6826800a -Started re-architecting the HLSL system to be data-driven [MooglyGuy] 2013-08-30 01:47:58 +00:00
Ryan Holtz
8f613c115b more HLSL cleanup, part e of pi (nw) 2013-08-30 01:05:13 +00:00
Ryan Holtz
ac119a8e15 uniform consolidation, nw 2013-08-29 00:56:33 +00:00
Robbbert
9f7081257d commented out stray printf 2013-08-28 07:57:05 +00:00
Ryan Holtz
a86d35158c minor shader cleanup, nw 2013-08-28 00:36:02 +00:00
R. Belmont
f39c565667 MIDI: fixed some SysEx issues [Christian Brunschen] 2013-08-27 03:19:54 +00:00
Ryan Holtz
8b4ef0a479 General code cleanup in HLSL, nw 2013-08-27 00:07:57 +00:00
Ryan Holtz
19057e2c78 Split HLSL pases into separate functions, nw 2013-08-25 21:18:07 +00:00
Ryan Holtz
37ce180567 -Restructured NTSC encode/decode shaders for better readability. [MooglyGuy] 2013-08-25 20:49:37 +00:00
Ryan Holtz
5d4e73bf50 01234567890123456789012345678901234567890123456789012345678901234567890123456789
MAMETesters Bugs Fixed
----------------------
- 05162: [Core] Toggling HLSL off then on with ctrl-alt-F5 will drop its use of
  aperture.png
- 05214: [Color/Palette] bzone: bzone displays black and white.
- 05218: [Graphics] crash when hlsl_read is set to 1
- 05235: [Core] You can't alt-tab and back with HLSL enabled and in 148 you
  could

Source Changes
--------------
-HLSL updates: [MooglyGuy]
  * Removed hlsl_read and hlsl_write options now that all slider options are
    plumbed and have values matching the INI settings
  * Added more surface release calls in order to fix device resetting
  * Fixed draw order for quads, overlays now appear on top of vectors in
    non-HLSL mode
  * Moved aperture.png loading into create_resources/delete_resources so that
    it is correctly reloaded when HLSL is toggled on and off
2013-08-25 16:20:18 +00:00
Oliver Stöneberg
ab7bfd7876 removed DECL_NORETURN in favor of ATTR_NORETURN (nw) 2013-08-22 09:51:55 +00:00
Oliver Stöneberg
eb91a212ac added makefile define DEPRECATED to show warnings about deprecated code / added ATTR_DEPRECATED / flag some stuff in diexec.h as deprecated (nw) 2013-08-22 09:40:15 +00:00
R. Belmont
72088cfa11 MIDI: System Common messages should not override running status, fixes Sierra games crashing with the MT-32. [R. Belmont] 2013-08-13 04:24:21 +00:00
Scott Stone
6a10775f6f SDL: Revise the *IX man pages [wallyweek] 2013-08-06 22:09:48 +00:00
Oliver Stöneberg
e533ab056f added makefile define FASTDEBUG to disable some debug-specific stuff, that is causing performance hits (for e.g. profiling) [Oliver Stöneberg] 2013-08-02 13:43:10 +00:00
Oliver Stöneberg
171d43ead6 removed Visual Studio specific makefile define MAXOPT in favor of adding more generic define LTO [Oliver Stöneberg] 2013-08-02 09:48:25 +00:00
Oliver Stöneberg
0b42d7e93b removed obsolete define from src/osd/windows/windows.mak (nw) 2013-08-02 09:35:28 +00:00
Andrew Gardner
416c9d0190 Adds the watchpoint view to the QT Debugger's "Break|Watchpoints" window.
[Andrew Gardner]
2013-07-26 00:50:53 +00:00
R. Belmont
bd549978c5 Initial support for Fedora 19 / GCC 4.8.1 [R. Belmont] 2013-07-08 23:32:47 +00:00
Miodrag Milanovic
841869e9c7 temp fix for qt debugger until handling of main loop is done in different way [qmc2] (nw) 2013-07-08 12:25:03 +00:00
smf-
2e9622ecdb Fixes for building MAME with Visual Studio 2013 preview [smf] 2013-07-05 00:45:14 +00:00
Oliver Stöneberg
a4f86de597 disabled some warnings for GCC 4.8 (nw) 2013-07-02 16:43:15 +00:00
cracyc
285531623a diserial: add attotime and clock-div forms of set_rate and rename check_for_start to rx_w (nw)
debugqt: don't hide cursor while in debugger (nw)
(mess) ibmpc: xt floppies for the xt (nw)
2013-06-30 18:00:34 +00:00
R. Belmont
80cf988718 Don't crash if pcap can't find a network interface's name [Richard L. Hamilton] 2013-06-28 01:51:02 +00:00
Oliver Stöneberg
b175ba2bc1 fixed uninitialized variables in sdlvideo_monitor_refresh() with SDL < 1.2.10 (nw) 2013-06-26 17:48:57 +00:00
Oliver Stöneberg
770249850d fixed emuallo.c compilation for good / enabled U64 and S64 for Visual Studio compilers (nw) 2013-06-25 13:44:47 +00:00
Andrew Gardner
e74983f6f8 QT Debugger: Finished up the breakpoints window. [Andrew Gardner]
It now shows breakpoints for all CPUs and lets you sort by
each field.
2013-06-12 06:22:35 +00:00
Miodrag Milanovic
16f5234d43 Cleanups and version bump 2013-06-11 07:16:42 +00:00
Oliver Stöneberg
247f0b4883 merged duplicated define in src/osd/sdl/sdl.mak (nw) 2013-06-08 10:21:11 +00:00
Scott Stone
0319c7ca06 Fix per OG to allow SDLMAME to compile on Windows (nw) 2013-06-07 17:42:42 +00:00
cracyc
7d929c24c9 add the breakpoint window to the win32 build too (nw) 2013-06-06 18:35:13 +00:00
Andrew Gardner
32861d94f5 QT Debugger: WIP for a new breakpoints window. [Andrew Gardner]
--out of whatsnew.txt--
You can't click to enable/disable breakpoints yet, and the number of rows 
doesn't resize yet, but that stuff will come.
2013-06-06 17:58:16 +00:00
David Haywood
37af3bed32 the actual fixed build part (nw) 2013-06-06 03:53:03 +00:00
David Haywood
4bd5fe4c21 "put HLSL back ..." fix build etc. 2013-06-06 02:43:23 +00:00
Ryan Holtz
cbf1480545 As this project is clearly now run by people who care more about "feelings" and playing patty-cake with one another rather than actual results, consider this my resignation letter.
Anyone who wants to know where HLSL went, feel free to ask Tafoid why he couldn't take a simple joke.
2013-06-06 01:57:42 +00:00
Ryan Holtz
bb629f90d3 - Added better .ini defaults for HLSL, and hooked up bloom sliders. [MooglyGuy]
(nw) "Tell that Dave to be cool! Say 'Dave be cool'! Tell that Dave to chill! Chill that Dave out!!"
2013-06-05 23:43:57 +00:00
cracyc
f1cbe3df6a debugqt: prevent threading deadlock in win32 with qt debugger (nw) 2013-06-04 13:51:49 +00:00
Andrew Gardner
35704b5ad4 Qt Debugger: The MAME memory tracking system no longer double-frees closed QT
windows.  Also fixes the font segfault on exit again. (nw, but thanks Carl)
2013-06-04 06:37:27 +00:00
R. Belmont
297e264b42 Ubuntu wants to be different. (nw) 2013-06-01 01:02:25 +00:00
Miodrag Milanovic
2337fd6287 reorder ifdefs (nw) 2013-05-31 06:21:04 +00:00
cracyc
2d9806dfaa windows.mak: use := for variables set by external programs (nw) 2013-05-30 16:51:18 +00:00
Andrew Gardner
a22837583f Oops. Slot names aren't unique. This is better anyway. (nw) 2013-05-30 16:24:07 +00:00
Andrew Gardner
9ca45de8a6 Fixed return value & menu item name in the QT Debugger's Image menu. (nw) 2013-05-30 16:20:36 +00:00
Miodrag Milanovic
9910ce0ecc change make file rules to be consistent to one in sdl build (nw) 2013-05-30 14:39:24 +00:00
Miodrag Milanovic
89834d2946 Cleaned a bit Carl's solution for optional QT debugger for Windows (nw) 2013-05-30 14:32:47 +00:00
Miodrag Milanovic
1dfb058b17 cast error found by mingw 4.7.4 (nw) 2013-05-30 07:25:08 +00:00
Andrew Gardner
800c6fd7c3 Adds the Image menu to the QT debugger's main window.
This allows the user to mount disk/c images from the UI.
[Andrew Gardner]
2013-05-30 04:29:41 +00:00
Michaël Banaan Ananas
b8b819fae7 ok once more (bwidow requested up to over 140,000) 2013-05-28 02:11:38 +00:00
Michaël Banaan Ananas
9ba2c2d05d increase vertex buffer size a bit more (from MooglyGuy) 2013-05-27 21:58:44 +00:00
Ryan Holtz
1fcfec449f fix composite ntsc shaders, nw 2013-05-22 08:03:01 +00:00
Ryan Holtz
35ef098e64 MAME Testers bugs fixed: 5201, 5202
- HLSL changes: [MooglyGuy]
 * Upped vertex buffer size to 64k verts, fixes assert in
   starwars and alphaone, please include the printed error
   message in any subsequent encounterings of the assert.
 * Improved vector rendering (beam width 1.5 suggested)
 * Ducked raster bloom default to 0.225 to reduce washout
2013-05-22 01:58:38 +00:00
Miodrag Milanovic
1c05ccc93b Cleanups and version bump 2013-05-20 06:51:25 +00:00
Ryan Holtz
daa3ae3b10 fix incorrect bloom functionality in fullscreen mode, nw 2013-05-20 01:20:22 +00:00
Ryan Holtz
5c0fb782dd Reset D3D device before destroying device. Fixes crash when selecting games from internal menu with HLSL enabled. nw 2013-05-19 22:30:52 +00:00
Ryan Holtz
675796fe23 fix vector bloom, nw 2013-05-19 21:53:08 +00:00
Ryan Holtz
4c40273047 remove double-alloc of texture_manager, nw 2013-05-19 20:49:53 +00:00
Ryan Holtz
169ac5250e potential crash fix, nw 2013-05-19 20:37:15 +00:00
Ryan Holtz
6d75797ddb Fix DFJustin's crash, nw 2013-05-19 20:20:36 +00:00
Oliver Stöneberg
80dbfdec59 fixed some initialization and cleanup issues with new D3D code (nw) 2013-05-19 19:14:45 +00:00
Ryan Holtz
e028e20476 - "And he did give them CRT bloom, and it scorched their eyes so; and they wept
openly, for there was nothing left to see with" [MooglyGuy]
  * Enabled vector bloom and associated .ini controls
  * Added raster bloom and associated .ini controls, each bloom "level" is the
    linear weight of successively half-sized render targets
  * Removed D3D8 mode
  * Mass renaming in D3D renderer to use namespaces, initial planning step to
    HAL-based renderer implementation on Windows (i.e., GL on Windows)
  * Converted d3d_info, d3d_poly_info, and d3d_texture_info into classes
  * Added batching of vectors for possible speed increase
  * Minor cleanup of shader state setting
2013-05-19 16:21:26 +00:00
Oliver Stöneberg
82819cf953 vconv: added support for -mavx and -flto (nw) 2013-05-18 15:53:20 +00:00
Andrew Gardner
7964d924b3 Adds memory tracking to debugger. This includes two new commands: trackmem and
pcatmem(p|d|i).  [Andrew Gardner]

Fixes left-click selection bug in the memory window. [Andrew Gardner]


Explanation:
------------
Call trackmem to start tracking which PC writes to which address in memory and 
pcatmem(p|d|i) to query a memory region for which PC wrote to it.  Users of 
the QT debugger can also right click on a memory address in the memory window 
to make a popup message appear with the results - right-clicking also 
automatically copies the resultant PC onto the clipboard.  (I'll attach an 
image of this behavior in a follow-up mail).
2013-05-09 19:20:05 +00:00
Miodrag Milanovic
4bf717996f Cleanups and version bump 2013-04-30 06:36:06 +00:00
R. Belmont
192c8ee88b SDL: Don't double-shutdown the font cache on *IX when exiting with the debugger enabled. [R. Belmont] 2013-04-29 03:09:57 +00:00
R. Belmont
897bea2bc6 OS X: Support for both OS X native and Unix-style multiuser installs. [R. Belmont, Nick Boos] 2013-04-28 19:08:54 +00:00
Andrew Gardner
98a13a7570 QT Debugger: Now saves all settings for all open windows - including docks
in the main debug window.
             Also fixes bug where closing the main window with the X in the
             corner didn't save settings properly.  [Andrew Gardner]
2013-04-27 05:03:39 +00:00
Andrew Gardner
cd2e723710 Convert the std::vector of settings to a simple_list in preparation for saving
individual window settings.  (nw)
2013-04-25 05:21:45 +00:00
Andrew Gardner
dd8d9b0044 QT Debugger: Adds trackpc command, allowing for a visual display of where the
program counter has visited in the dasm windows.
Run "help trackpc" in the debugger to see the options. [Andrew Gardner]


Out of whatsnew:
This isn't enabled by default because of how sloooow it is to disassemble each
opcode when you want to compute its crc32.  That can be sped up with lookup 
tables and the like.

There's a good chance I should pull the 'clear tracks' argument into its own
command, but it functions as-is.

This can be added to the windows debugger with a simple change to the
osd display code.
2013-04-20 16:36:14 +00:00
smf-
210848fdad fixed compile error (nw) 2013-04-15 11:30:08 +00:00
cracyc
5b2dde69b9 bitbngr: handle create (nw)
winsocket: use GetLastError (nw)
2013-04-15 04:08:12 +00:00
cracyc
5ee7683519 upd765_dsk: don't crash when inserting a disk after removing a different size one (nw)
winsocket, winptty: don't use osd_free on pointer allocated with malloc (nw)
2013-04-15 02:10:49 +00:00
R. Belmont
07df4de8a9 SDL: Fix symlink handling by internal file manager. [qmc2] 2013-04-13 01:14:11 +00:00
Miodrag Milanovic
c6cd8a09c8 Cleanups and version bump 2013-04-09 06:46:57 +00:00
Miodrag Milanovic
beab9e3007 revert of r22266 (nw) 2013-04-08 14:19:17 +00:00
Ryan Holtz
a6ac25b796 Convert d3d_texture_info to a class, nw 2013-04-07 23:14:22 +00:00
Michaël Banaan Ananas
4dba2235a1 drawd3d.c - Fixes performance issues with YIQ enabled and prescale_x/prescale_y changes no longer impacts colors. [Just Desserts, Robert Tuccitto] 2013-04-06 22:33:58 +00:00
Andrew Gardner
de35bcf071 QT Debugger: The memory view chunk size radio now reports proper sizes.
Fixed "ignore" command reporting incorrect invalid CPUs.
             Fixed crazy code responsible for opcodes' crc32s in the comments system
             (what was I thinking back then?). [Andrew Gardner]
2013-04-02 03:33:43 +00:00
Andrew Gardner
518043eb5b QT Debugger: Fixes bug where commands don't refresh all windows. 2013-03-31 16:09:41 +00:00
Oliver Stöneberg
9e90158d7d disabled some GCC-specific hacks in sdl.mak when clang is being used / also silenced linker for DISTRO=ubuntu-intrepid (nw) 2013-03-20 17:54:09 +00:00
Andrew Gardner
8cc2092788 QT Debugger fixes:
- New memory windows start focused on the active CPU.
  - Opening a utility window, closing it, and stepping no longer re-opens the window. 
    [Andrew Gardner]
2013-03-19 16:55:21 +00:00
Miodrag Milanovic
0e1f5ad25b Cleanups and version bump 2013-03-19 07:22:20 +00:00
R. Belmont
b92fda6d04 SDL: Make the Qt debugger the default for *IX and Win32 builds. 2013-03-17 17:57:32 +00:00
Miodrag Milanovic
b3b3257747 Windows OSD / stdout/stderr output buffering [qmc2] 2013-03-17 08:39:26 +00:00
cracyc
e85a5663ae netdev_pcap: set non-block mode for winpcap (nw) 2013-03-09 22:31:11 +00:00
cracyc
7bda3f5ee8 netdev_tap: filter packets try 2 (nw) 2013-03-04 01:46:22 +00:00
cracyc
b3486955c1 Oops 2013-03-02 03:35:42 +00:00
cracyc
36201eba9d dinetwork: remove mcast_chk and check for multicast in recv (nw)
netdev_tap: do mac filtering (nw)
2013-03-02 03:29:47 +00:00
Ryan Holtz
aa19b2633c (nw) Fixed sliders and phosphor offset 2013-02-28 05:22:14 +00:00
R. Belmont
1d71a26a9d And the traditional missed file (nw) 2013-02-27 02:15:25 +00:00
R. Belmont
7cec2a0798 Ethernet: Make pcap work on Mac OS X & disable unnecessary packet filtering. [Rob Braun] 2013-02-27 02:14:55 +00:00
R. Belmont
6a576392bc SDL: Don't include GTK+/GConf in Qt debugger builds (nw) 2013-02-20 05:24:08 +00:00
R. Belmont
9a19f623fc input: Support up to 32 buttons and harmonize Windows and SDL behavior if you exceed the limit [Nick3092] 2013-02-18 17:18:00 +00:00
Miodrag Milanovic
a440a8e020 Cleanups and version bump 2013-02-11 07:44:56 +00:00
cracyc
7175f0ae1b pcap: don't crash on exit when wpcap.dll is unloaded before pcap_close is called. (nw)
i386: fix bug (nw)
2013-02-07 04:25:04 +00:00
R. Belmont
b3e608e957 Add server socket support instead of just client. [SailorSat, R. Belmont] 2013-02-07 04:08:46 +00:00
R. Belmont
70a9d274ac MIDI: preliminary SysEx reception support [R. Belmont] 2013-02-03 21:26:37 +00:00
R. Belmont
944baeb5aa MIDI: enable transmission of SysEx messages [R. Belmont] 2013-02-03 20:39:03 +00:00
R. Belmont
e67051001f SDL: Update manpages to reflect the -lr alias for -listroms [Wallyweek] 2013-02-02 22:13:48 +00:00
R. Belmont
39f48b0bee (MESS) SoundBlaster: MIDI Out support for single-byte, SB UART, and MPU-401 UART modes. [R. Belmont] 2013-01-31 05:47:51 +00:00
R. Belmont
b91d5a2ac3 MIDI: handle MIDI Out with running status properly [R. Belmont] 2013-01-29 04:41:52 +00:00
Ryan Holtz
b9002b3e8a Fix HLSL toggle and move it to Ctrl+Alt+F5. Next time someone touches the HLSL code without knowing what they're doing, I remove it entirely. (nw) 2013-01-28 22:01:06 +00:00
Oliver Stöneberg
c1af67f12b fixed Visual Studio 2010 compilation by disabling an additional warning (nw) 2013-01-28 14:22:53 +00:00
Oliver Stöneberg
093d2460fb improved some version checks in makefiles / added TODOs (nw) 2013-01-28 08:49:47 +00:00
Robbbert
7e9eae0e71 Made a change to my original hlsl fix, this stops the crash with ctrl+alt+F12. However since hlsl doesn't work on my pc, can others do some testing? 2013-01-28 04:07:25 +00:00
R. Belmont
7d0a910431 SDL: Fix Qt debugger on Mac OS X [Balrog] 2013-01-26 21:24:14 +00:00
R. Belmont
84a8fe9bae SDL: Update mame and mess manpages [Wallyweek] 2013-01-24 23:56:50 +00:00
R. Belmont
5d45d3ddbc SDL: Fix srcclean damage in sdl.mak [Wallyweek] 2013-01-24 23:55:55 +00:00
Andrew Gardner
ba61a286f3 QT Debugger improvements [Andrew Gardner]
- Save and load window locations.
  - Preliminary work on "run and hide" and "hard reset" 
    (don't crash on one of my copmilers but do on another - more work to do!)
  - Fixed color when cursor is the same as PC in debug view.
  - Closing the main window now shuts down the machine (same as quit)
  - Help now wraps to the log window size.
2013-01-24 17:06:42 +00:00
Ryan Holtz
ab409258e5 Silence some debug spam and turn off bloom target allocation on cache targets, nw 2013-01-21 15:21:25 +00:00
Ryan Holtz
bdbafca7a7 Fix raster games with HLSL, nw 2013-01-21 03:04:44 +00:00
Ryan Holtz
d157249cb7 d3dhlsl.c: Add preliminary vector post-processing. [MooglyGuy] 2013-01-21 02:40:48 +00:00
Andrew Gardner
7c81353d9c QT Debugger improvements. [Andrew Gardner]
- Fixed disassembly window not following PC correctly.
 - Switched font to Courier New since it seems more universal.
 - Fixed gaps between rendered text characters.
 - Plumbed mouse handling through the debugger core (clicking selects).
 - Made the Enter key behave like old SDL debugger; silently steps.
2013-01-16 04:37:30 +00:00
R. Belmont
9c0f4e6683 MIDI: Fixed several bugs and bumped the input buffer sizes [R. Belmont] 2013-01-15 14:45:36 +00:00
Robbbert
4efc1f7b05 Temp patch to fix d3d crash at start. 2013-01-15 12:30:05 +00:00
R. Belmont
520a27efd5 First pass on MIDI out support [R. Belmont] 2013-01-14 03:10:52 +00:00
R. Belmont
2f0c02a4f1 Fix compiling on PowerPC OS X (nw) 2013-01-13 21:41:04 +00:00
Ryan Holtz
4825263ebf - d3dhlsl.c: Made HLSL switchable at runtime, Ctrl+Alt+F12. [MooglyGuy] 2013-01-13 15:07:11 +00:00
R. Belmont
f6c44c6e9b MIDI core updates: [R. Belmont]
- Add MIDI in and out ports as image device types
- Add OSD calls to check for and read MIDI input
- Add MIDI in image device which reads input and converts it to a serial bitstream

nw section:
Note that the MIDI In device uses the new image device override to prevent the core from attempting to fopen() the "file" name and instead it handles open/close itself in call_load/call_unload.  This allows greater flexibilty than the hack used for sockets/ptys/named pipes where the OSD file layer has to know about them.
2013-01-13 03:48:10 +00:00
smf-
1940866c70 output of new srcclean changes that are relatively small [smf] 2013-01-11 19:43:14 +00:00
Miodrag Milanovic
0e19f641d3 Cleanups and version bump 2013-01-11 07:32:46 +00:00
Oliver Stöneberg
d61e5d5a15 fixed unitialized memory in osd_file (nw) 2013-01-09 19:12:31 +00:00
Nathan Woods
a43dcda2c2 MSVC fixes (nw) 2013-01-08 11:47:40 +00:00
Ryan Holtz
b41802d6ce 01234567890123456789012345678901234567890123456789012345678901234567890123456789
- drawd3d.c: Move default_texture creation into device_create_resources. Should
             fix intermittent crashes when alt-tabbing back to a full-screen
             instance of MAME. [MooglyGuy]
2013-01-06 00:28:22 +00:00
Ryan Holtz
3d1e0d9d65 - d3dhlsl.c: Free HLSL resources on device reset. Fixes hang when alt-tabbing
away from a fullscreen window and back. [MooglyGuy]
2013-01-05 19:02:01 +00:00
Ryan Holtz
c34900b360 - d3dhlsl.c: Clamp hlsl_prescale_x/y to a minimum of 1. Fixes crashes when using
-nomaximize switch. [MooglyGuy]
2013-01-05 17:55:42 +00:00
Oliver Stöneberg
9e3e9ff81f fixed pmmidi.c includes (fixes Visual Studio linking) (nw) 2013-01-01 21:28:49 +00:00
R. Belmont
13c3e056aa Enable compiling PortMidi (nw)
Tested on: Linux x64, Mac OS X 10.8, Windows 8 x64 w/latest toolchain for both OSD=windows and OSD=sdl.  MIDI should auto-disable on other OSes (*BSD) but there may be problems.  Works fine on Linux when set to use the system's copy of the library as well, which many distros prefer.
2013-01-01 16:58:48 +00:00
R. Belmont
ad80ff6c3f portmidi: Initial commit. [R. Belmont]
(nw: this isn't enabled to compile yet, this is just to make it easier to run the final tests on my Mac and my Windows laptop)
2013-01-01 16:11:32 +00:00
Curt Coder
9eb41bb391 2013 2013-01-01 09:00:57 +00:00
Ryan Holtz
7e652d13c5 - render.c: Added new PRIMFLAG macros pertaining to vectors, to be used by the
OSD. [MooglyGuy]

- d3dhlsl.c: Began laying the groundwork for vector post-processing, disabled
            by default. [MooglyGuy]
2012-12-31 21:29:02 +00:00
Ryan Holtz
af9ee4a4e4 [HLSL] Fixed crash when using presets. [MooglyGuy]
[HLSL] Restored old HLSL prescale behavior, with 0 being auto-detect. [MooglyGuy]
2012-12-31 17:35:24 +00:00
Nathan Woods
3aa34032cf MSVC compilation fixes (nw) 2012-12-31 11:46:37 +00:00
R. Belmont
dcff4c8618 SDL: fix "Illegal integer value for numprocessors: "auto"; reverting to auto" [R. Belmont] 2012-12-30 04:21:12 +00:00
Ryan Holtz
ae9f7ca3db (nw) Fixes HLSL bugs with Rocket Knight Adventures 2012-12-29 20:11:06 +00:00
Oliver Stöneberg
46013ad0d9 reverted bogus fix (nw) 2012-12-29 12:44:09 +00:00
Oliver Stöneberg
94824e13d7 removed unnecessary variable initialization added in last commit (nw) 2012-12-29 11:34:10 +00:00
Oliver Stöneberg
f48344c62e fixed MT#4846: make sure, that we always get a win_monitor_info* in winwindow_video_window_monitor() [Oliver Stöneberg] 2012-12-29 11:27:56 +00:00
Ryan Holtz
8624385a24 01234567890123456789012345678901234567890123456789012345678901234567890123456789
hlsl: Added bounds-checking on presets. [MooglyGuy]

hlsl: Cleaned up render target management. May provide better behavior in games
      that use multiple resolutions, e.g. tekken3 and stv. [MooglyGuy]
2012-12-29 01:05:33 +00:00
R. Belmont
5ee48d4899 SDL: Autodetect Ubuntu 12.10 and work around faulty default compiler [R. Belmont] 2012-12-28 22:14:59 +00:00
Miodrag Milanovic
4281522dfa Removed -mwindows I have added recently makes console unusable (nw) 2012-12-28 08:10:58 +00:00
Oliver Stöneberg
f00a249577 forgot to add comment in windows.mak (nw) 2012-12-28 01:14:40 +00:00
R. Belmont
8d293ac840 SDL: Work around Qt differences between Fedora and everyone else [qmc2] 2012-12-27 20:52:52 +00:00
R. Belmont
844e894976 SDL: Qt debugger support cleanup, fixed OS X crash [qmc2, R. Belmont] 2012-12-27 16:09:06 +00:00
Oliver Stöneberg
0ea68a4327 added make define MSVC_ANALYSIS to run Visual Studio code analysis (nw) 2012-12-26 13:09:43 +00:00
Miodrag Milanovic
ff3e49d66f Changed isa device cpu search, fixes -listxml (no whatsnew)
Added some addtional XT and AT bioses 
Added -mwindows flag to windows sdl build with QT
2012-12-26 12:57:49 +00:00
Miodrag Milanovic
b4da179247 Made QT debugger compiles under windows SDL build (no whatsnew) 2012-12-25 11:53:34 +00:00
R. Belmont
165cb6ba96 Whoops (nw) 2012-12-25 04:03:04 +00:00
R. Belmont
a9116a7973 SDL: Experimental Qt-based debugger [Andrew Gardner, R. Belmont] 2012-12-25 03:51:20 +00:00
Nathan Woods
a21d4c2470 MSVC compilation fixes. 2012-12-22 17:13:18 +00:00
R. Belmont
c11827943d Add MESS-related manpages I missed (nw) 2012-12-20 00:56:47 +00:00
Oliver Stöneberg
2935ac9180 enabled multi-threading by default on Windows 2012-12-18 16:03:57 +00:00
Oliver Stöneberg
07dcb5c0a4 vconv: bumped Visual Studio warning level to 4 and disabled most of the new warnings (for now) / added translation of -Wno-sign-compare 2012-12-17 14:44:51 +00:00
Miodrag Milanovic
83c7f8c03c typo fix from qmc2 (no whatsnew) 2012-12-10 12:26:49 +00:00
Nathan Woods
c8b9a2095e Profiler rewrite; simplified, streamlined and less overhead. 2012-12-09 23:11:14 +00:00
R. Belmont
1de64f53fe SDL: Revise *IX man pages [wallyweek] 2012-12-06 04:39:12 +00:00
smf-
76b18952fa remove redundant linking with dinput8.lib, it's conditionally added a few lines later. 2012-10-11 08:38:30 +00:00
Wilbert Pol
6dca510a96 OSX compile fixes (nw) 2012-09-19 21:11:39 +00:00
Aaron Giles
974da4d5b5 Fix MSVC compilation. 2012-09-18 04:11:19 +00:00
Oliver Stöneberg
6bc58a69ab (MESS) fixed resource data of Windows executable [Oliver Stöneberg] 2012-09-17 19:49:37 +00:00
Miodrag Milanovic
e25c13f253 Clean-ups and version bump
note: hoarded dump removed too from coco_cart.xml, this will not be tolerated
2012-09-17 06:49:13 +00:00
Aaron Giles
1a30184903 Final round of struct/union/enum normalization. 2012-09-16 05:24:30 +00:00
Aaron Giles
91f928d6cd Enum and union normalization. 2012-09-16 03:06:55 +00:00
Aaron Giles
ab97dc30ef First pass at modernizing struct definitions. 2012-09-15 21:47:30 +00:00
R. Belmont
80e6e662b1 SDL: don't enable XInput by default (nw) 2012-09-15 15:44:59 +00:00
Oliver Stöneberg
9ef51b6bcd added missing \n to some fatalerror() calls (no whatsnew) 2012-09-07 19:46:27 +00:00
Curt Coder
518205f199 Fixed default SDL OSX UI toggle key name. [Curt Coder] 2012-08-29 18:37:08 +00:00
Scott Stone
f22b57d092 Fixed for an SDL sound bug surrounding use of -speed and pausing frequently causing corrupt sound. [Antonio Giner] 2012-08-29 17:28:47 +00:00
Couriersud
6c4f9a0d65 Added gcc-4[567]-generic entries to sdl.mak to select gcc with DISTRO= switch. 2012-08-20 19:19:15 +00:00
Oliver Stöneberg
06ba8ecf43 added missing \n to some fatalerror() calls (no whatsnew) 2012-08-18 11:25:01 +00:00
Oliver Stöneberg
aab3cad57f fixed debugger window to just use fixed-pitch font and removed fallback since CreateFont will still return a font based on other characteristics when the face was not found (no whatsnew) 2012-08-18 10:01:13 +00:00
Miodrag Milanovic
10294b81ab Made UI mouse cursor optional (default is off for now), in games with clickable artwork cursor is visible, application is not taking mouse control anymore (no whatsnew) 2012-08-17 13:42:21 +00:00
Miodrag Milanovic
b2b8a48438 Added internal mouse cursor visible in menus and when clickable artwork is used [Miodrag Milanovic] 2012-08-15 14:39:48 +00:00
R. Belmont
71373ae179 SDL: Fix -prescale option for SDL builds [Matthias Reichl] 2012-08-11 12:06:44 +00:00
Oliver Stöneberg
765271cb05 removed redundant interlocked function wrappers from Windows code (no whatsnew) 2012-08-07 13:05:00 +00:00
Miodrag Milanovic
19179ec9b6 Clean-ups and version bump 2012-07-30 07:55:43 +00:00
Oliver Stöneberg
97dbb9484f removed unnecessary strlen() usage (no whatsnew) 2012-07-27 15:37:39 +00:00
Oliver Stöneberg
5864158d33 allow "windowname" in win_create_window_ex_utf8() to be NULL to match behavior of CreateWindowEx() (no whatsnew) 2012-07-27 15:24:08 +00:00
R. Belmont
b987e8d872 SDL: more compile fixes (nw) 2012-07-26 22:10:32 +00:00
R. Belmont
a93ee65b41 Fix some non-Windows compiles (nw) 2012-07-26 21:23:51 +00:00
Oliver Stöneberg
eb937ea06a fixed version check in windows.mak (no whatsnew) 2012-07-26 19:36:30 +00:00
R. Belmont
351b3a9d8e SDL: some compile fixes for OS X and Windows (nw) 2012-07-26 13:32:29 +00:00
R. Belmont
beba639471 SDL: Use XInput to allow multiple lightguns on Linux/*BSD targets. [Markus Rathgeb, based on a patch by SpritesMods.com] 2012-07-25 01:32:48 +00:00
Miodrag Milanovic
ed9afac60c Clean-ups and version bump 2012-07-15 09:28:52 +00:00
R. Belmont
b3dec1e4f7 SDL: Greatly improve drawing speed of GTK+ debugger windows [Fabrice Bellet] 2012-07-13 01:46:26 +00:00
Miodrag Milanovic
869a0ab7af fix for profiler memory leaks mtbug #04094 (no whatsnew) 2012-07-09 17:02:00 +00:00
R. Belmont
994de882e9 SDL: Clean up GCC 4.7 test so it's the same path on all targets (nw) 2012-06-19 01:25:24 +00:00
Miodrag Milanovic
85cda51486 Make it compile on windows mingw 4.7.x (no whatsnew) 2012-06-18 16:06:11 +00:00
R. Belmont
72e6e33b4c SDL: Support newer Linux distros using GCC 4.7 [R. Belmont] 2012-06-15 02:23:19 +00:00
Michaël Banaan Ananas
d82cead34c fix mistake by me a while ago: sr(syncrefresh) clashed with emuopts sr(samplerate) 2012-06-10 21:24:15 +00:00
smf-
d52292616e fixed building with Visual Studio 11 RC 2012-06-02 22:31:32 +00:00
R. Belmont
8dac2bd9e5 SDL: More OS/2 fixes [K.O. Myung-Hun] 2012-05-31 13:26:39 +00:00
R. Belmont
144234d9f6 SDL: Preliminary Haiku OS support [PulkoMandy] 2012-05-28 18:15:02 +00:00
R. Belmont
821f78f286 SDL: fix for OS/2 compile [K.O. Myung-Hun] 2012-05-27 16:31:22 +00:00
Miodrag Milanovic
932910a75e fixed some "comparison is always true/false" warnings reported by clang by Firewave
in timer.c I have commented not removed lines that are always false
2012-05-20 11:43:57 +00:00
Miodrag Milanovic
63362efd37 fix for -video ddraw causing crash on 16bit video output (no whatsnew) 2012-05-19 17:06:03 +00:00
Miodrag Milanovic
206d7d92c6 Fixed display of icon in windows (no whatsnew) 2012-05-15 13:20:26 +00:00
Miodrag Milanovic
2139f1b17d end of line was missing (nw) 2012-05-15 12:29:40 +00:00
Miodrag Milanovic
eb43dbb7a3 MAME windows executable gets it's own icon (no whatsnew) 2012-05-15 12:21:20 +00:00
smf-
a7229679c7 fixes for building with visual studio 11 beta. 2012-05-10 19:02:23 +00:00
R. Belmont
f03200ab01 Don't optimize tms57002 on OS X PowerPC builds [Couriersud] 2012-05-08 01:26:33 +00:00
Miodrag Milanovic
0238c610f7 Clean-ups and version bump 2012-05-07 06:57:50 +00:00
Miodrag Milanovic
5616c1e9d5 removed -static for sdl windows build (no whatsnew) 2012-05-04 06:18:42 +00:00
Miodrag Milanovic
6231165166 -static is not needed anymore for latest tools (no whatsnew) 2012-05-03 16:45:36 +00:00
Miodrag Milanovic
36ea482ace Sync with MESS (no whatsnew) 2012-05-03 09:16:42 +00:00
Aaron Giles
2a88e54278 ioport.c C++ conversion. Mostly internal changes, with no
intended differences from previous behavior. For drivers,
the main change is that input_port_read() no longer exists.
Instead, the port must be fetched from the appropriate device,
and then read() is called.

For member functions, this is actually simpler/cleaner:

  value = ioport("tag")->read()

For legacy functions which have a driver_data state, it goes:

  value = state->ioport("tag")->read()

For other legacy functions, they need to fetch the root device:

  value = machine.root_device().ioport("tag")->read()

The other big change for drivers is that IPT_VBLANK is gone.
Instead, it has been replaced by a device line callback on the
screen device. There's a new macro PORT_VBLANK("tag") which
automatically points things to the right spot.

Here's a set of imperfect search & replace strings to convert
the input_port_read calls and fix up IPT_VBLANK:

input_port_read( *\( *)(machine\(\)) *, *([^)]+ *\))
ioport\1\3->read\(\)

input_port_read( *\( *)(.*machine[()]*) *, *([^)]+ *\))
\2\.root_device\(\)\.ioport\1\3->read\(\)

(state = .*driver_data[^}]+)space->machine\(\)\.root_device\(\)\.
\1state->

(state = .*driver_data[^}]+)device->machine\(\)\.root_device\(\)\.
\1state->

input_port_read_safe( *\( *)(machine\(\)) *, *([^,]+), *([^)]+\))
ioport\1\3->read_safe\(\4\)

IPT_VBLANK( *\))
IPT_CUSTOM\1 PORT_VBLANK("screen")
2012-05-03 09:00:08 +00:00
Miodrag Milanovic
4296762a20 Killed unicows (no whatsnew) 2012-04-28 07:10:04 +00:00
Miodrag Milanovic
708eb8bb6f Same change for sdl build on windows (no whatsnew) 2012-04-24 13:11:12 +00:00
Miodrag Milanovic
b9e61fd29b Fix linking for mingw GCC 4.6.3 and upper using libwinpthread (no whatsnew) 2012-04-24 12:24:57 +00:00
Angelo Salese
ded30e907e Clean-ups and version bump 2012-04-22 14:10:44 +00:00
Aaron Giles
9091010c87 Broke dependency between mcr68 and mcr by creating
sound devices for each of the Midway 8-bit sound
boards. This will also aid in eventually hooking them
up to pinballs.

Enhanced the mixer interface support to allow for
more than one output line. To use this you need to
use the MCFG_MIXER_ROUTE macro instead of 
MCFG_SOUND_ROUTE so that the mixer output index can
be specified. See midway_ssio_device for an example.
2012-04-17 14:58:05 +00:00
Aaron Giles
7d27b8c9ff Hooray for templates. 2012-04-12 07:35:57 +00:00
Miodrag Milanovic
986f1ef77d Sync with MESS (no whatsnew) 2012-04-11 14:48:01 +00:00
R. Belmont
4243eab5c4 SDL: fix build on non-OS X targets (nw) 2012-04-09 22:47:42 +00:00
Wilbert Pol
6711559e87 SDL: Got rid of some code duplication between the _unix and _macosx implementations for sdlptty and sdlmisc. (nw) 2012-04-09 19:55:43 +00:00
R. Belmont
f7a94cda02 SDL: Fix formatting of chdman man page [wallyweek] 2012-03-29 21:50:36 +00:00
Michaël Banaan Ananas
67364cfe81 Change DirectInput joystick acquisition method to be non exclusive. [bdam] 2012-03-25 17:55:05 +00:00
R. Belmont
58eb388fd5 Update SDL man pages. chdman has formatting glitches but at least matches the binary we ship. [wallyweek, R. Belmont] 2012-03-25 02:27:58 +00:00
Wilbert Pol
e3cf71776b Fixed typo (nw) 2012-03-07 19:46:01 +00:00
R. Belmont
11a3efc873 abort() is intended in this instance (nw) 2012-02-29 14:12:38 +00:00
Miodrag Milanovic
bef76826c9 fixed several Visual Studio compiler warnings and 64-bit libflac compilation by Firewave, and idectrl change from Carl (no whatsnew) 2012-02-29 09:13:22 +00:00
R. Belmont
a0b7883fa3 SDL: support unofficial (not in the OSD class) num_processors API used by chdman. Allows chdman to use multiple cores/processors on non-Windows. [R. Belmont] 2012-02-26 22:55:18 +00:00
Angelo Salese
cf4b58b6f6 Clean-ups and version bump 2012-02-19 15:23:23 +00:00
Miodrag Milanovic
4ba8461f7c Added windows implementation of pseudo tty access functions over pipes [Carl] 2012-02-19 08:50:03 +00:00
Aaron Giles
f0823886a6 Major CHD/chdman update. The CHD version number has been increased
from 4 to 5. This means any diff CHDs will no longer work. If you
absolutely need to keep the data for any existing ones you have,
find both the diff CHD and the original CHD for the game in question 
and upgrade using these commands:

  rename diff\game.dif diff\game-old.dif
  chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none

Specifics regarding this change:

Defined a new CHD version 5. New features/behaviors of this version:
  - support for up to 4 codecs; each block can use 1 of the 4
  - new LZMA codec, which tends to do better than zlib overall
  - new FLAC codec, primarily used for CDs (but can be applied anywhere)
  - upgraded AVHuff codec now uses FLAC for encoding audio
  - new Huffman codec, used to catch more nearly-uncompressable blocks
  - compressed CHDs now use a compressed map for significant savings
  - CHDs now are aware of a "unit" size; each hunk holds 1 or more units
     (in general units map to sectors for hard disks/CDs)
  - diff'ing against a parent now diffs at the unit level, greatly
     improving compression

Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported,
and version 3/4 CHDs are only supported for reading. Creating a new
CHD now leaves the file open.  Added methods to read and write at the 
unit and byte level, removing the need to handle this manually. Added
metadata access methods that pass astrings and dynamic_buffers to
simplify the interfaces. A companion class chd_compressor now
implements full multithreaded compression, analyzing and compressing
multiple hunks independently in parallel. Split the codec 
implementations out into a separate file chdcodec.*

Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/
write capabilities of the chd_file class. cdrom.c (and chdman) now also 
pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that
the same SHA1 hashes are produced regardless of the hunk size.

Rewrote chdman.exe entirely, switching from positional parameters to
proper options. Use "chdman help" to get a list of commands, and
"chdman help <command>" to get help for any particular command. Many 
redundant commands were removed now that additional flexibility is
available. Some basic mappings:

  Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs>
  New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs>

  Old: chdman -createuncomphd <in.raw> <out.chd> ....
  New: chdman createhd -i <in.raw> -o <out.chd> -c none ....

  Old: chdman -verifyfix <in.chd>
  New: chdman verify -i <in.chd> -f

  Old: chdman -merge <parent.chd> <diff.chd> <out.chd>
  New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd>

  Old: chdman -diff <parent.chd> <compare.chd> <diff.chd>
  New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd>

  Old: chdman -update <in.chd> <out.chd>
  New: chdman copy -i <in.chd> -o <out.chd>

Added new core file coretmpl.h to hold core template classes. For now
just one class, dynamic_array<> is defined, which acts like an array
of a given object but which can be appended to and/or resized. Also
defines dynamic_buffer as dynamic_array<UINT8> for holding an 
arbitrary buffer of bytes. Expect to see these used a lot.

Added new core helper hashing.c/.h which defines classes for each of
the common hashing methods and creator classes to wrap the 
computation of these hashes. A future work item is to reimplement
the core emulator hashing code using these.

Split bit buffer helpers out into C++ classes and into their own
public header in bitstream.h.

Updated huffman.c/.h to C++, and changed the interface to make it
more flexible to use in nonstandard ways. Also added huffman compression
of the static tree for slightly better compression rates.

Created flac.c/.h as simplified C++ wrappers around the FLAC interface.
A future work item is to convert the samples sound device to a modern
device and leverage this for reading FLAC files.

Renamed avcomp.* to avhuff.*, updated to C++, and added support for
FLAC as the audio encoding mechanism. The old huffman audio is still
supported for decode only.

Added a variant of core_fload that loads to a dynamic_buffer.

Tweaked winwork.c a bit to not limit the maximum number of processors
unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ
option. Further adjustments here are likely going to be necessary.

Fixed bug in aviio.c which caused errors when reading some AVI files.
2012-02-16 09:47:18 +00:00
Couriersud
ebe89a47d3 Fixed testkeys to work with SDL2.0. Keymaps can now contain SDL1.3 and SDL2.0 mappings. Updated km-de.txt as an example. [Couriersud] 2012-02-16 01:38:13 +00:00
Couriersud
19c3217408 Added support for (track)balls to osd/sdl. [Couriersud]
To test it, I used my Logitech Trackball (normally a mouse) and configured it as a joystick.

Prerequisites:

- Locate your linux input device for the trackball. In my case that's /dev/input/event3
- "sudo chmod a+r /dev/input/event3"
- "export SDL_JOYSTICK_DEVICE=/dev/input/event3"

This forces sdl to recognize the trackball as a input device.

-mame64 missile -nomouse -w

Configure the trackball axis. Make sure the mouse pointer is outside the window and window still has keyboard focus - most modern window manager should support this. 

Quit and restart with

-mame64 missile -mouse -now

to hide the mouse. Voila. Works.
2012-02-15 21:40:35 +00:00
R. Belmont
634199ff6e (nw) 2012-02-13 23:38:49 +00:00
R. Belmont
0419f03478 (nw) 2012-02-13 23:23:41 +00:00
Couriersud
5344166555 updated sdl os-core to compile against stock SDL-2.0 [couriersud].
- The SDL team has moved from 1.3 to 2.0. At the same time, changes were made to allow SDL1.2 and SDL2.0 to coexist. All SDL2.0 include files are now in /usr/include/SDL2.
- Added sdlinc.h to avoid having tons of #ifdef .. #include in the code.
- Scalemode is no longer a per-window setting
- Fixed a bug in YUV rendering.
- Use SDL_GetClipboard (SDL2.0)
- Updated README_SDL20.txt

Currently, SDL 2.0 is only supported on *nix. Volunteers welcome.
2012-02-12 20:59:24 +00:00
Michaël Banaan Ananas
f84735dcef cmdline option shortcuts for:
waitvsync -> vs
syncrefresh -> sr
2012-02-10 19:26:14 +00:00
R. Belmont
d58200c58c SDL: don't show misleading message for .BDF UI fonts [R. Belmont, The Flying Ape] 2012-01-29 02:32:28 +00:00
Miodrag Milanovic
41324054a1 Fixed pcap network device search [Carl] 2012-01-25 09:56:25 +00:00
Aaron Giles
ed0207f126 Move devices into a proper hierarchy and handle naming
and paths consistently for devices, I/O ports, memory
regions, memory banks, and memory shares. [Aaron Giles]

NOTE: there are likely regressions lurking here, mostly
due to devices not being properly found. I have temporarily
added more logging to -verbose to help understand what's
going on. Please let me know ASAP if anything that is being
actively worked on got broken.

As before, the driver device is the root device and all 
other devices are owned by it. Previously all devices
were kept in a single master list, and the hierarchy was
purely logical. With this change, each device owns its
own list of subdevices, and the hierarchy is explicitly
manifest. This means when a device is removed, all of its
subdevices are automatically removed as well.

A side effect of this is that walking the device list is
no longer simple. To address this, a new set of iterator
classes is provided, which walks the device tree in a depth
first manner. There is a general device_iterator class for
walking all devices, plus templates for a device_type_iterator
and a device_interface_iterator which are used to build
iterators for identifying only devices of a given type or
with a given interface. Typedefs for commonly-used cases
(e.g., screen_device_iterator, memory_interface_iterator)
are provided. Iterators can also provide counts, and can
perform indexed lookups.

All device name lookups are now done relative to another 
device. The maching_config and running_machine classes now
have a root_device() method to get the root of the hierarchy. 
The  existing machine->device("name") is now equivalent to
machine->root_device().subdevice("name").

A proper and normalized device path structure is now
supported. Device names that start with a colon are
treated as absolute paths from the root device. Device
names can also use a caret (^) to refer to the owning
device. Querying the device's tag() returns the device's
full path from the root. A new method basetag() returns
just the final tag.

The new pathing system is built on top of the 
device_t::subtag() method, so anyone using that will 
automatically support the new pathing rules. Each device
has its own internal map to cache successful lookups so
that subsequent lookups should be very fast.

Updated every place I could find that referenced devices,
memory regions, I/O ports, memory banks and memory shares
to leverage subtag/subdevice (or siblingtag/siblingdevice
which are built on top).

Removed the device_list class, as it doesn't apply any
more. Moved some of its methods into running_machine
instead.

Simplified the device callback system since the new 
pathing can describe all of the special-case devices that
were previously handled manually.

Changed the core output function callbacks to be delegates.

Completely rewrote the validity checking mechanism. The
validity checker is now a proper C++ class, and temporarily
takes over the error and warning outputs. All errors and 
warnings are collected during a session, and then output in
a consistent manner, with an explicit driver and source file
listed for each one, as well as additional device and/or
I/O port contexts where appropriate. Validity checkers 
should no longer explicitly output this information, just
the error, assuming that the context is provided.

Rewrote the software_list_device as a modern device, getting
rid of the software_list_config abstraction and simplifying
things.

Changed the way FLAC compiles so that it works like other
external libraries, and also compiles successfully for MSVC
builds.
2012-01-24 20:18:55 +00:00
R. Belmont
87c3d68343 Changes for GCC 4.7 compatibility [Belegdol] 2012-01-21 20:39:52 +00:00
R. Belmont
e981a9771e fix 64-bit Intel OS X compile w/latest Xcode (nw) 2012-01-16 16:52:54 +00:00
Angelo Salese
7b631e4c5b Clean-ups and version bump 2012-01-15 21:40:54 +00:00
Aaron Giles
e4238fb654 Major bitmap-related changes throughout the system. There are
almost certainly some regressions lurking. Let me know if
something seems busted.

Bitmaps are now strongly typed based on format. bitmap_t still
exists as an abstract base class, but it is almost never used.
Instead, format-specific bitmap classes are provided:

   bitmap_ind8 == 8bpp indexed
   bitmap_ind16 == 16bpp indexed
   bitmap_ind32 == 32bpp indexed
   bitmap_ind64 == 64bpp indexed
   bitmap_rgb32 == 32bpp RGB
   bitmap_argb32 == 32bpp ARGB
   bitmap_yuy16 == 16bpp YUY

For each format, a generic pix() method is provided which
references pixels of the correct type. The old pix8/pix16/pix32/
pix64 methods still exist in the short term, but the only one
available is the one that matches the bitmap's pixel size. Note
also that the old RGB15 format bitmaps are no longer supported
at all.

Converted model1, megadriv, and stv drivers away from the RGB15
format bitmaps.

New auto_bitmap_<type>_alloc() macros are provided for allocating
the appropriate type of bitmap.

Screen update functions now must specify the correct bitmap type
as their input parameters. For static update functions the
SCREEN_UPDATE macro is now replaced with SCREEN_UPDATE_RGB32 and
SCREEN_UPDATE_IND16 macros. All existing drivers have been 
updated to use the correct macros. 

Screen update functions are now required for all screens; there
is no longer any default behavior of copying a "default" bitmap
to the screen (in fact the default bitmap has been deprecated).
Use one of the following to specify your screen_update callback:

   MCFG_SCREEN_UPDATE_STATIC(name) - static functions
   MCFG_SCREEN_UPDATE_DRIVER(class, func) - driver members
   MCFG_SCREEN_UPDATE_DEVICE(tag, class, func) - device members

Because the target bitmap format can now be deduced from the
screen update function itself, the MCFG_SCREEN_FORMAT macro is
no longer necessary, and has been removed. If you specify a
screen update callback that takes a bitmap_ind16, then the screen
will be configured to use a 16bpp indexed bitmap, and if you
specify a callback that takes a bitmap_rgb32, then a 32bpp RGB
bitmap will be provided.

Extended the bitmap classes to support wrapping a subregion of
another bitmap, and cleaner allocation/resetting. The preferred
use of bitmaps now is to define them directly in drivers/devices
and use allocate() or wrap() to set them up, rather than 
allocating them via auto_bitmap_*_alloc().

Several common devices needed overhauls or changes as a result
of the above changes:

 * Reorganized the laserdisc base driver and all the laserdisc 
    drivers as modern C++ devices, cleaning the code up 
    considerably. Merged ldsound device into the laserdsc
    device since modern devices are flexible enough to handle
    it.

 * Reorganized the v9938 device as a modern C++ device. Removed
    v9938mod.c in favor of template functions in v9938.c directly.

 * Added independent ind16 and rgb32 callbacks for TMS340x0 devices.

 * All video devices are now hard-coded to either ind16 or rgb32
    bitmaps. The most notable is the mc6845 which is rgb32, and
    required changes to a number of consumers.

 * Added screen_update methods to most video devices so they can be
    directly called via MCFG_SCREEN_UPDATE_DEVICE instead of creating
    tons of stub functions.
2012-01-12 21:19:49 +00:00
R. Belmont
b4ab914f21 OS/2 updates [KO Myung-Hun] 2012-01-05 03:23:51 +00:00
Phil Bennett
2187468105 Revert r14902 for sdlmain.c. Fixes compilation on Intel OS X. 2012-01-03 09:50:40 +00:00
Aaron Giles
64f1231c63 Removed old C-based interface to astrings. astring exists only as
a class now. Updated all stragglers (mostly tools) to use the class
form. [Aaron Giles]
2012-01-03 00:21:13 +00:00
R. Belmont
0e7eaf5d24 SDL stopped compiling again. Imagine that! (nw) 2012-01-02 06:36:58 +00:00
Aaron Giles
80cd316a2a Bulk conversion of bitmap_t * to bitmap_t & . With this change the
parameters for the global SCREEN_UPDATE callback match the parameters
for the driver_device version. Added allocate() and deallocate()
methods to bitmap_t to permit cleaner handling of bitmaps in drivers
and modern devices. [Aaron Giles]
2012-01-02 04:59:11 +00:00
R. Belmont
c8680b9ca3 (nw) 2011-12-31 23:02:03 +00:00
R. Belmont
fcc664268b Et tu, Aaron? (nw) 2011-12-31 23:00:08 +00:00
Wilbert Pol
8ba7ddeec6 Fix OSX compile.
RB: Please verify if this fix is ok with you.
2011-12-31 11:58:49 +00:00
Aaron Giles
9cae38e0d8 Converted bitmap_t and rectangle into proper classes. Replaced BITMAP_ADDR*
macros with bitmap->pix* functions, and moved bitmap_fill() to bitmap->fill()
among other similar changes. Bitmap fields now only available via accessors.
Replaced sect_rect with &= and union_rect with |= operators for rectangle
classes. Some general cleanup as a result of these changes. [Aaron Giles]
2011-12-31 07:52:26 +00:00
Angelo Salese
7e812d10d3 Clean-ups and version bump 2011-12-24 21:49:38 +00:00
Miodrag Milanovic
a2cf6501ea less ugly way to silence gcc 4.6 (no whatsnew) 2011-12-15 14:10:46 +00:00
Miodrag Milanovic
f23a3ef001 Added GCC check in windows.mak and win32 part of sdl.mak and also did silence of gcc 4.6 in win32 specific video.c (no whatsnew) 2011-12-15 08:17:18 +00:00
Angelo Salese
f0649b4e22 cleanups and version bump 2011-12-14 21:33:51 +00:00
Miodrag Milanovic
6e79bb2629 Sync with MESS all credited there (no whatsnew) 2011-12-12 14:20:12 +00:00
Miodrag Milanovic
72212fbbba Handling error where filenames are too long [Chad] 2011-12-07 07:54:47 +00:00
Scott Stone
5bceba7caa Moved a condition check (tex->d3dtex == tex->d3dfinaltex) to happen before one of them was set to NULL (tex->d3dfinaltex). Fixes MT Bug #4538. [Antonio Giner] 2011-11-29 19:20:25 +00:00
Scott Stone
74deaabe33 This change makes sure that the watchdog message will be displayed in case other messages are also waiting to be displayed. Useful in regression testing where such messages were not being displayed in some cases. (nw) 2011-11-27 14:46:34 +00:00
Angelo Salese
9f8125a24e Clean-ups and version bump 2011-11-27 14:06:49 +00:00
Aaron Giles
4a3512c756 Fix obvious use-after-free error in device_delete().
Remove explicit freeing of HLSL shadow_texture, since it is allocated
by texture_create() which does its own tracking and freeing.
2011-11-27 04:58:47 +00:00
R. Belmont
d5581057e1 (nw) 2011-11-22 14:21:24 +00:00
R. Belmont
0e513db597 (nw) 2011-11-22 13:14:23 +00:00
Miodrag Milanovic
98c917e0a1 Fixed memory leaks in networking, used core functions for allocating memory, fix sdl win32 building with network enabled (no whatsnew) 2011-11-22 11:25:14 +00:00
Miodrag Milanovic
6aadd7d787 Sync with MESS, also placed back sdlmain change since it proved working on BSD (no whatsnew) 2011-11-22 09:07:58 +00:00
Miodrag Milanovic
43245e3777 Fixed compile warning with 4.6.2 (no whatsnew) 2011-11-21 12:41:14 +00:00
R. Belmont
1ad9d735c7 Various SDL netdev fixes (nw) 2011-11-21 02:43:59 +00:00
R. Belmont
f5a4b7dc30 SDL updates [R. Belmont, Carl, cgwg]
- pcap network support for OS X and Windows SDL targets
- GLSL tweaks to better support the "CRT" shader
2011-11-18 22:16:21 +00:00
R. Belmont
fbf346da6f Not yet, *BSD stops compiling otherwise (nw) 2011-11-18 13:02:28 +00:00
Miodrag Milanovic
17006c8890 Updated sdlmain.c due to fact that there is no more -DMESS compile option (no whatsnew)
Functionality stay the same.
2011-11-18 10:04:56 +00:00
Ryan Holtz
9063cb221f - Fixed HLSL memory leak and crash on exit on 32-bit targets. [Ryan Holtz, Bat Country Entertainment]
Word around the campfire is this totally works and stuff. More technically, it eliminates a number of double-frees and also now cleans up the shadow mask PNG and hlsl_options allocations. (nw)
2011-11-18 06:23:04 +00:00
Miodrag Milanovic
be8bd3552f Move per emulator constants info into separate class [Miodrag Milanovic]
out of log:
This way it is possible to link two or more separated executables with different 
copyright/xml out/name/... in one compilation, just one step closer...
2011-11-17 10:02:55 +00:00
Angelo Salese
18b06709c8 Clean-ups and version bump 2011-11-13 20:35:34 +00:00
R. Belmont
b384d01bc3 syncing MESS (nw) 2011-11-06 22:08:37 +00:00
R. Belmont
c22e712313 Please don't use whizzy new GCC features without asking me first (nw) 2011-11-06 21:16:34 +00:00
Nathan Woods
cdd0600db4 Added hot/cold attributes. Made the MAME executable 1% smaller by using the
cold attribute on setup functions
2011-11-06 11:06:58 +00:00
R. Belmont
fd0be74ab4 SDL: Add TAP/TUN networking capability and shell script for configuration [Carl] 2011-10-31 01:30:24 +00:00
Angelo Salese
e6b9af5ec6 Clean-ups and version bump 2011-10-23 15:06:49 +00:00
Miodrag Milanovic
a1f1b43fda Fixed compile under GCC 4.6 (no whatsnew) 2011-10-22 09:55:22 +00:00
Angelo Salese
5ee0c7d818 clean-ups and version bump 2011-10-10 21:17:54 +00:00
Michaël Banaan Ananas
6ee05f83d3 hide_cursor option for chess games and clickable artwork and such.
default to on means exactly the same behaviour as it was before, off means mousecursor is _always_ shown
2011-10-10 19:45:31 +00:00
Michaël Banaan Ananas
325dc41b5d revert r14152, good idea but please add a -grabcursor option instead 2011-10-10 18:37:18 +00:00
Olivier Galibert
07519ce890 Windows only - for evaluation - changed when mouse pointer goes off. Pointer will always be on in windowed mode. In full-screen, it will obey the -mouse / -nomouse option. This means that you will always have a mouse pointer in mouse-enabled artwork (such as chess), since these must always be run in windowed mode. 2011-10-10 07:56:14 +00:00
Ryan Holtz
2e76ba4306 - Fixed all HLSL stability issues except visible crease. [Ryan Holtz, Bat Country Entertainment]
No whatsnew: There is no creasing visible to me, using either -window -nomaximize or -nowindow on a 1920x1080 display. If someone can get me a consistently reproducible case, it will be fixed.
2011-09-29 06:49:36 +00:00
Miodrag Milanovic
f44e93375a uncommenting line in winmain (no whatsnew) 2011-09-22 13:34:16 +00:00
Miodrag Milanovic
9bfa6c5bc2 Fixed warnings found by GCC 4.6.2 without change of h63484.c since that one is wip (no whatsnew) 2011-09-22 12:48:44 +00:00
Angelo Salese
cb74ddd807 Clean-ups and version bump 2011-09-20 21:10:48 +00:00
Miodrag Milanovic
8831b63c04 Made network device selection to be per id, which makes it simpler, and doesn't need hardcoded values (no whatsnew) 2011-09-09 14:45:13 +00:00
Miodrag Milanovic
1063a955cc Added network support used by MESS implemented by Carl (no whatsnew)
part is disabled for now by compile options. Will be enabled,at least in MESS
when all platforms get their implementation.
2011-09-09 14:21:42 +00:00
R. Belmont
00e0852cd3 Fix OpenBSD compile [fgsch] 2011-09-08 00:15:12 +00:00
Ryan Holtz
4523bfa2d0 HLSL "Hurricain't Keep A Good Dev Down" Bugfix Extravaganza: [Ryan Holtz, Bat
Country Entertainment]
- Created two flags, -hlsl_ini_write and -hlsl_ini_read. The former enables
  custom HLSL INI writing explicitly, the other enables loading of the same.
- Fixed disappearing aperture effect when using custom INI files.
- Fixed diagonal seam on some games, for serious real this time
- Fixed phosphor simulation, now works as expected
2011-08-28 09:10:53 +00:00
Scott Stone
b6cd64c7ab "English doesn't borrow from other languages. English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar!"
Hand-checked the most popular English word misspellings and made the appropriate changes.  Nearly all of the changes made were in commented areas. (no whatsnew)
2011-08-23 04:59:11 +00:00
Angelo Salese
fd97e3da4c Clean-ups and version bump 2011-08-14 23:01:08 +00:00
Miodrag Milanovic
1d67e27539 Various memory leaks and unnecessary checks removed by Oliver Stoneberg (no whatsnew) 2011-08-14 07:20:37 +00:00
Miodrag Milanovic
9856fdfb87 fixed potential NULL pointer dereferences / also removed unnecessary NULL checks by Oliver Stoneberg (no whatsnew) 2011-08-08 13:19:56 +00:00
R. Belmont
8157337c42 OS/2 build fixes [K.O. Myung-Hun] 2011-08-02 02:27:31 +00:00
Michaël Banaan Ananas
ec0f083375 DI_PROPNOEFFECT after dinput property change is not an error 2011-08-01 23:06:12 +00:00
Miodrag Milanovic
8449a9cbdc - Removing MD5 support in ROMLOAD_* [Oliver Stoneberg]
- Various core and tools memory leaks fixes [Oliver Stoneberg]
2011-07-31 15:46:18 +00:00
Jonathan Gevaryahu
471762e7df Fix for the hlsl scanline jitter effect [nimitz] 2011-07-28 21:16:50 +00:00
Miodrag Milanovic
38e4c3f09d Fix for VS2010 build (no whatsnew) 2011-07-28 15:34:33 +00:00
Miodrag Milanovic
919780a6bc Added socket support to windows osd [Miodrag Milanovic] 2011-07-28 11:23:37 +00:00
Miodrag Milanovic
dea70e7f6a Fixed hlsl mem leak by Firewave (no whatsnew) 2011-07-27 08:19:32 +00:00
Miodrag Milanovic
b39238d672 Fixed double-free of d3d->hlsl [Oliver Stoneberg] 2011-07-26 17:11:13 +00:00
R. Belmont
6ca8f8a8c3 Fixes for variable shadowing [Oliver Stöneberg] 2011-07-21 13:19:08 +00:00
R. Belmont
77e86084ab Fix autorelease pool warnings when running multithreaded on Mac OS X [Tim Lindner] 2011-07-18 22:37:20 +00:00
R. Belmont
497927733d Corrected syntax in some inline assembly [Balrog] 2011-07-09 16:56:11 +00:00
Angelo Salese
ef7acc5d65 Cleanups (?) and version bump 2011-06-28 14:28:46 +00:00
Miodrag Milanovic
9704fb140c Fixed memory leaks in HLSL code (no whatsnew) 2011-06-28 08:14:45 +00:00
Angelo Salese
e6050ace10 Cleanups and version bump 2011-06-19 19:29:25 +00:00
Miodrag Milanovic
079e1fa5fa Cassette device modernized (no whatsnew) 2011-06-15 09:18:10 +00:00
Ryan Holtz
23976ade94 HLSL Updates: [Ryan Holtz, Bat Country Entertainment]
- MAME will now save an HLSL INI file on the first run of a game that doesn't already have an INI file.
- HLSL INI files must have their parameters left in the order in which they are saved out.
- Fixed a diagonal 'crease' visible on the screen in HLSL mode.
2011-06-13 23:09:41 +00:00
Ryan Holtz
5838be042b Next time feel free to apply the obvious fix, no whatsnew :-) 2011-06-12 08:42:23 +00:00
Ryan Holtz
80d66bb1d6 HLSL Cleanup, no whatsnew:
- Fixed set_vector functionality and simplified shaders as a result
- Fixed HLSL presets, 0 to 3, in increasing level of terribleness
- Reduced options footprint from RGB triplets

Next plan: Separate INI writing.
2011-06-11 23:46:24 +00:00
Fabio Priuli
509b39374d sdlsocket: workaround for a problem in the detection of tcp/ip socket address [Michael Zapf]
out of whatsnew
remark 1- this is for MESS only to my knowledge, let me know if I should credit the change in MESS instead
remark 2 (mainly for Arbee) - sorry if I touched the SDL side of the source, but mizapf was eager to fix the ti99 issues 
            and since tlinder approved the change and you did not object on the MESS list, I think it was time to commit it ;)
2011-06-08 19:49:12 +00:00
Miodrag Milanovic
3853306c85 Added image devices menu to debugger (windows only for now) [Miodrag Milanovic] 2011-06-08 12:59:11 +00:00
Ryan Holtz
1ec454197a HLSL Updates: [Ryan Holtz, Bat Country Entertainment, austere]
- Reworked default shadow mask settings, eliminating rainbow banding and matching reference shots more closely
- Moved color power to occur after shadow mask, as it is intended to simulate nonlinear phosphor response
- Added a variable-width notch filter to the Y channel in NTSC post-processing, eliminating luma banding on e.g. CoCo 2 and Apple II
2011-06-06 21:25:38 +00:00
Angelo Salese
a449c766a2 Cleanups and version bump 2011-06-05 22:35:20 +00:00
Ryan Holtz
ad8a4985f9 Memory leak fix, nwn 2011-06-03 14:41:30 +00:00
Ryan Holtz
771b77142f Fix for performance regression and slider regression in HLSL, also re-enabling pixel prescaling in yiq_encode.fx. No whatsnew. 2011-06-03 14:38:59 +00:00
Ryan Holtz
30b0cb9a6f De-regressing HLSL performance on certain resolutions of game, nwn 2011-06-02 17:01:08 +00:00
Ryan Holtz
844296b795 Split HLSL code into a separate file, d3dhlsl.c/.h. Also split drawd3d.c into a couple of headers. [Ryan Holtz, Bat Country Entertainment] 2011-06-02 06:22:09 +00:00
Ryan Holtz
b3406aac94 nwn: bad printf, bad! 2011-06-01 22:21:35 +00:00
Ryan Holtz
b6f85b8c26 Kill height-based HLSL prescaling, only prescale based on frame width. Brings Kangaroo's prescale down from 5 to 2 and thus within a more reasonable GPU budget. Games that have a ridiculously higher vertical resolution than horizontal resolution will still have issues. 2011-06-01 22:08:28 +00:00
Ryan Holtz
130b3fcabb Keep HLSL prescaling from blowing out VRAM when regular prescaling is enabled. 2011-05-31 15:58:49 +00:00
Ryan Holtz
61eda625cb NWN: Fixing the NTSC codec. Oops. 2011-05-31 14:43:47 +00:00
Ryan Holtz
f42b5ccda0 No whatsnew
Attempting to fix the HLSL 'blurriness' reported by a few people. Now HLSL will auto-prescale to the nearest texture size that is greater than the target screen size on both axes and is also an even multiple of the raw bitmap's size.
2011-05-31 13:53:25 +00:00
Ryan Holtz
103358104c nwn, reducing default scanline brightness offset to 0 2011-05-31 05:08:35 +00:00
Ryan Holtz
ed6689e2d4 Fixed scanlines, nwn. This took much longer to fix than it should have. :[ 2011-05-31 05:02:17 +00:00
Ryan Holtz
37e8c1d7e4 Fixing some scanline-alignment issues. 2011-05-31 02:04:28 +00:00
Ryan Holtz
773e35d79b Moved "color floor" functionality to occur after scanlines but before shadow mask. Scanlines look much better and no longer cut black lines through the shadow mask. No whatsnew. 2011-05-30 21:40:25 +00:00
Ryan Holtz
796e691522 HLSL Updates: [Ryan Holtz, Bat Country Entertainment, austere, SoltanGris42]
- Added the ability to render screenshots at arbitrary resolutions.
- Added the ability to record AVI videos (albeit with no audio) at arbitrary resolutions.
- Added a 43-tap-wide FIR-based NTSC filter with tunable Y, I and Q frequency response.
- Updated scanlines to have a user-tunable pixel-height ratio in addition to the current screen-height ratio.
- Fixed a VRAM leak that was causing many dynamic-resolution drivers to run out of memory mid-run.
2011-05-30 21:10:23 +00:00
Aaron Giles
e532e74a8a Should fix osd keys. 2011-05-30 20:58:55 +00:00
Aaron Giles
665d213ee4 (Finally found the time to finish this....)
Low-level input upgrade. Classes now exist for input_codes, input_items,
input_devices, and input_seqs. Also created an input_manager class to
hold machine-global state and made it accessible via machine.input().
Expanded the device index range (0-255, up from 0-16), and the OSD can
now specify the device index explicitly if they can better keep the 
indexes from varying run-to-run. [Aaron Giles]

Note that I've built and run SDL on Windows, but not all the code paths
were exercised. If you use mice/joysticks extensively double-check them
to be sure it all still works as expected.

This is mainly an OSD and core change. The only thing impacting drivers
is if they query for specific keys for debugging. The following S&Rs
took care of most of that:

S: input_code_pressed( *)\(( *)([^, ]+) *, *
R: \3\.input\(\)\.code_pressed\1\(\2

S: input_code_pressed_once( *)\(( *)([^, ]+) *, *
R: \3\.input\(\)\.code_pressed_once\1\(\2
2011-05-30 19:07:19 +00:00
R. Belmont
601301fc95 GCC 4.6 "Variable assigned but not used" fixes, part 6 (no whatsnew) 2011-05-30 03:31:11 +00:00
R. Belmont
999394b8f5 GCC 4.6 "Variable assigned but not used" fixes, part 5 (no whatsnew) 2011-05-30 03:19:31 +00:00
Angelo Salese
81036ed1f9 Robbbert port from MESS, nw! 2011-05-29 12:42:57 +00:00
Ryan Holtz
0d2bc3300f Fix -nohlsl 2011-05-24 19:35:47 +00:00
Ryan Holtz
e97aa6b56d Internal HLSL cleanup - removed aux texcoords, restored software vertex processing due to low-end cards not doing hardware vertex processing, removed unnecessary tristrip->trilist splitting. Restores D3D functionality on integrated chipsets and marginal cards. [Ryan Holtz, Ashura-X] 2011-05-24 18:28:54 +00:00
Ryan Holtz
6760f6a40c HLSL bugfxes, nwn 2011-05-24 00:23:40 +00:00
Angelo Salese
95f06e11a8 Cleanups and version bump 2011-05-24 00:13:27 +00:00
Angelo Salese
b91ca7e606 Initial frameworking for upcoming artwork updates [Mr. Do] 2011-05-23 16:28:23 +00:00
Ryan Holtz
b63233e7a6 Call off the dogs, the OSD routing for OSD-side sliders has been fixed. nwn 2011-05-23 05:03:16 +00:00
Ryan Holtz
b1b15dd44e Oops. 2011-05-23 00:57:17 +00:00
Ryan Holtz
25029d2dbf Fixing broken Red Power slider 2011-05-23 00:15:18 +00:00
Ryan Holtz
01f16cb0f8 HLSL Updates: [Ryan Holtz, Bat Country Entertainment]
- Created a new OSD function, osd_get_slider_list, which allows OS-specific slider controls.
- Plumbed new OSD-specific slider controls for HLSL parameters on Direct3D 9 targets. And there was much rejoicing.
2011-05-22 23:59:27 +00:00
Curt Coder
dbe84fd73d Fixed MSVC warning. (nw) 2011-05-22 14:56:59 +00:00
Ryan Holtz
f38312b078 NULL crash fix, nwn 2011-05-22 02:50:39 +00:00
Ryan Holtz
53e20c168f Fixing multiscreen games, nwn 2011-05-22 02:27:31 +00:00
Ryan Holtz
2cd23c1476 Made texture_create display a verbose message if texture creation fails, as texture creation failure leads to a crash and thus the user should know about it, nwn 2011-05-22 01:43:35 +00:00
Ryan Holtz
99dffc122e HLSL: Added adjustable color carrier in YIQ processing mode. [Ryan Holtz, Bat Country Entertainment]
HLSL: Fixed resolution-change crash and likely D3D performance regression with -nohlsl on low-spec cards [Ryan Holtz, Bat Country Entertainment]
2011-05-22 01:30:55 +00:00
Ryan Holtz
0235cef534 Fix for -noyiq issues, nw 2011-05-20 07:51:59 +00:00
Ryan Holtz
fd7a110eba HLSL Updates [Ryan Holtz, Bat Country Entertainment]
- Re-worked render target handling to align pixels better, reducing unintentional blurring
- Made major fixes to CVBS simulation, significantly increasing color saturation
2011-05-20 07:37:34 +00:00
Aaron Giles
8d7c1cb8ad Link to DLL version of SDL since the static version is hard to come by. 2011-05-20 00:50:48 +00:00
Aaron Giles
2625a01395 Update needed for new toolchain. 2011-05-20 00:49:03 +00:00
Scott Stone
af20a718d3 Change default value/maximum setting for audio_latency in SDL to match that of baseline. (no whatsnew) 2011-05-19 23:58:10 +00:00
Ryan Holtz
cfd6731fa8 HLSL Post-Processing Updates: [Ryan Holtz, Bat Country Entertainment, cgwg]
- The defocus pass is now switched off when defocus_x and defocus_y are zero, allowing finer-grained performance tuning.
- Removed YIQ convolution from the main color-convolution shader and replaced it with a full composite encode/decode pass. This is slower, but looks amazing(ly like a terrible TV) and can be turned off.
- More authentic NTSC dot crawl and bandwidth limiting.
2011-05-19 19:14:20 +00:00
Ryan Holtz
2820e31451 HLSL Updates [Ryan Holtz, Bat Country Entertainment]
- Potential fix for some crashing reported by John IV
- Split color convolution and deconvergence into separate shaders for potential GPU savings down the line
- Added light and heavy variants of the color convolution shader, the former with YIQ colorspace removed
- Re-worked defocus to occur prior to shadow mask application, as it would be on a real monitor.
- Removed Edge Detection, as it was just for fun and can easily be added in by users if desired.
- Split "pincushion" into "Pincushion" and "Screen Curvature", the former affecting the only the displayed image and the latter only affecting the shadow mask.
2011-05-18 00:35:16 +00:00
Miodrag Milanovic
9cf16652c7 Enable Visual Studio basic run-time checks in non-optimized builds [Oliver Stoneberg]
Flush stderr, so the data is actually written when output is being redirected [Oliver Stoneberg]
2011-05-17 13:15:29 +00:00
Ryan Holtz
66756f18d9 Implemented experimental HLSL post-processing support on Direct3D 9 targets. [Ryan Holtz, Bat Country Entertainment]
- 5-pass post-processing: Upscale, Post-Process, Store Last Frame, Defocus 1, Defocus 2
- Many tunable effects including: Scanlines, defocus, linear deconvergence, radial deconvergence, pincushion, RGB colorspace convolution, YIQ colorspace convolution, saturation, simulated dot crawl, simulated chroma subsampling, aperture masking, and more.
- Requires a GPU that supports Shader Model 3.0 to be enabled and a powerful GPU, the entire pipeline consists of approximately 30 texel fetches and approximately 230 arthimetic ops.
- Will supersample the framebuffer up to 9x in both X and Y, but this requires an enormously powerful GPU that has not been invented; users with Radeon 5000-class cards should limit themselves to 3x, Radeon 4000 to 1.5x.
- The default configuration will NOT appear to do anything; it requires tuning to the user's liking.
- Should nicely fall back in all cases except missing shaders, and it might fall back correctly in that case as well. Report any anomalies.
- For obvious reasons, the Direct3D8 renderer cannont support this.
2011-05-16 18:23:25 +00:00
R. Belmont
2bb589beaf Compile fix for kFreeBSD [Christian Marillat] 2011-05-08 19:10:51 +00:00
Aaron Giles
932a42eac4 Be consistent about template argument naming. 2011-04-30 20:37:06 +00:00
Miodrag Milanovic
37c0ed3fad Fix compiling debugger in SDL (no whatsnew) 2011-04-28 12:07:50 +00:00
Miodrag Milanovic
96b402e8e1 Fixed typo in sdl/input.c (no whatsnew) 2011-04-28 11:51:06 +00:00
Aaron Giles
af94c692bb Switch to using delegates for some callbacks:
- non-device timer callbacks
 - machine state changing callbacks
 - configuration callbacks
 - per-screen VBLANK callbacks
 - DRC backend callbacks

For the timer case only, I added wrappers for the old-style functions.
Over time, drivers should switch to device timers instead, reducing the
number of timers that are directly allocated through the scheduler.
2011-04-27 20:34:45 +00:00
R. Belmont
dbfbf4e0b0 fix SDL compile (no whatsnew) 2011-04-27 16:46:21 +00:00
Aaron Giles
919913f118 Collapsed device_config and device_t into one class. Updated all
existing modern devices and the legacy wrappers to work in this
environment. This in general greatly simplifies writing a modern
device. [Aaron Giles]

General notes:
 * some more cleanup probably needs to happen behind this change,
   but I needed to get it in before the next device modernization 
   or import from MESS  :)

 * new template function device_creator which automatically defines
   the static function that creates the device; use this instead of
   creating a static_alloc_device_config function

 * added device_stop() method which is called at around the time
   the previous device_t's destructor was called; if you auto_free
   anything, do it here because the machine is gone when the 
   destructor is called

 * changed the static_set_* calls to pass a device_t & instead of
   a device_config *

 * for many devices, the static config structure member names over-
   lapped the device's names for devcb_* functions; in these cases
   the members in the interface were renamed to have a _cb suffix

 * changed the driver_enumerator to only cache 100 machine_configs
   because caching them all took a ton of memory; fortunately this
   implementation detail is completely hidden behind the 
   driver_enumerator interface

 * got rid of the macros for creating derived classes; doing it
   manually is now clean enough that it isn't worth hiding the
   details in a macro
2011-04-27 05:11:18 +00:00
R. Belmont
10e187e5c4 SDL: fix backwards texture rectangle option [AWJ] 2011-04-22 23:06:55 +00:00
Angelo Salese
d3a1560433 Ok, last spring cleaning, I hope ... 2011-04-19 14:36:17 +00:00
Miodrag Milanovic
23f4601cab Fix for exit error codes by Oliver Stoneberg (no whatsnew) 2011-04-19 06:49:31 +00:00
Aaron Giles
d971ce8f36 Privatized most of the m_machine pointers in the system to prevent
direct use.
2011-04-19 06:02:01 +00:00
Angelo Salese
486fbfa555 Cleanups again 2011-04-18 00:06:50 +00:00
Couriersud
4a611f7d08 Fix loading fonts on MacOSX. [Couriersud] 2011-04-16 18:43:35 +00:00
R. Belmont
eba03ea4c4 Fixes for non-native SDL builds on OS X [Paulo Cabral] 2011-04-16 02:28:11 +00:00
Aaron Giles
00d745ca77 (Big tangle of changes that all happened as I was looking into the ROM
loader rewrite, which is still in progress....)

Replaced mamedriv.c with a new driver list mechanism that is generated
by the build tools. The emulator core now expects the presence of a
file called src/$(TARGET)/$(SUBTARGET).lst which is just a raw list of
driver names, one per line. C and C++ comments are still permitted.
This file is parsed by a new build tool makelist which extracts the
driver names, sorts them, and generates a file called drivlist.c, which
is consumed by the core. [Aaron Giles]

Added new osdcore function osd_malloc_array() which is identical to
osd_malloc() but obviously hints that the underlying allocation is for
an array. Updated all callers to use the appropriate form. Modified the
Windows allocator to only use guard pages for array-style allocations,
allowing us to enable them once again in debug builds. [Aaron Giles]

Created new static class driver_list to wrap accesses to the list of
available drivers. Improved speed of driver lookups by relying on the
presorting done by makelist. [Aaron Giles]

Created helper class driver_enumerator as a helper for iterating through 
the list of drivers. This class supports basic filtering and iteration,
and also serves as a temporary cache of machine_configs. [Aaron Giles]

Created cli_frontend object to wrap all the CLI handling code in
clifront.c. Updated/simplified all the code to take advantage of the
driver_enumerator. [Aaron Giles]

Created media_auditor object to wrap all the auditing functions in
audit.c. Updated all users to the new interface. Note that the new
auditing mechanism is slightly out of sync with the romload code in
terms of finding ROMs owned by devices, so it may mis-report some
issues until the new ROM loading code is in. [Aaron Giles]

Added concept of a per-device searchpath. For most devices, their 
searchpath is just the short name of the device. For driver_devices, the
searchpath is driver[;parent[;bios]]. This searchpath will eventually be
used by the rom loader to find ROMs. For now it is used by the media
auditor only. [Aaron Giles]

Created info_xml_creator object to wrap all the info generation functions
in info.c. Converted the file to C++ and cleaned up the input processing
code. [Aaron Giles]

(not for whatsnew ... Known issues: auditing of CHDs appears busted, and 
debug builds report unfreed memory if you use the built-in game picker)
2011-04-13 20:31:00 +00:00
Aaron Giles
792c76e741 Re-enable MALLOC_DEBUG for debug builds. Can't remember why I ever
turned it off in the first place.
2011-04-03 15:39:50 +00:00
Aaron Giles
68958f72db Cleanups and version bump. 2011-04-03 05:49:24 +00:00
Miodrag Milanovic
33c28764d1 Fixed compiling tools in MAME and MESS side (no whatsnew) 2011-03-31 13:21:58 +00:00
Angelo Salese
340571e69c Fix compile 2011-03-30 23:25:35 +00:00
Wilbert Pol
446be9ae42 Fix osx compile. 2011-03-30 20:29:36 +00:00
Olivier Galibert
9300bf632c The scripts did an interesting number on the sdl/debugwin.c file :-) 2011-03-30 20:13:55 +00:00
smf-
00fb8baaff fixed build. 2011-03-30 18:45:05 +00:00
Aaron Giles
ee8ae2b1d8 Make the symbol table use a simple_list for its cache. 2011-03-29 17:01:49 +00:00
Aaron Giles
2ad5072023 BIG update.
Remove redundant machine items from address_space and device_t.
Neither machine nor m_machine are directly accessible anymore.
Instead a new getter machine() is available which returns a
machine reference. So:

  space->machine->xxx   ==>  space->machine().xxx
  device->machine->yyy  ==>  device->machine().yyy

Globally changed all running_machine pointers to running_machine
references. Any function/method that takes a running_machine takes
it as a required parameter (1 or 2 exceptions). Being consistent
here gets rid of a lot of odd &machine or *machine, but it does
mean a very large bulk change across the project.

Structs which have a running_machine * now have that variable
renamed to m_machine, and now have a shiny new machine() method
that works like the space and device methods above. Since most of
these are things that should eventually be devices anyway, consider
this a step in that direction.

98% of the update was done with regex searches. The changes are
architected such that the compiler will catch the remaining
errors:

// find things that use an embedded machine directly and replace
// with a machine() getter call
S: ->machine->
R: ->machine\(\)\.

// do the same if via a reference
S: \.machine->
R: \.machine\(\)\.

// convert function parameters to running_machine &
S: running_machine \*machine([^;])
R: running_machine \&machine\1

// replace machine-> with machine.
S: machine->
R: machine\.

// replace &machine() with machine()
S: \&([()->a-z0-9_]+machine\(\))
R: \1

// sanity check: look for this used as a cast
(running_machine &)
// and change to this:
*(running_machine *)
2011-03-29 15:50:04 +00:00
Wilbert Pol
f3916bed57 Fix osx compile. 2011-03-28 20:50:41 +00:00
Miodrag Milanovic
da5fb6dd0d Another fix for SDL build, not seen by win32 build (no whatsnew) 2011-03-28 12:00:04 +00:00
Miodrag Milanovic
09b83b1c61 Fix compile for SDL build (no whatsnew) 2011-03-28 11:24:52 +00:00
Aaron Giles
af071893a6 Cleanup of machine.h. Shuffled some fields around, and moved several
to private member variables with accessors:

machine->m_respool     ==> machine->respool()
machine->config        ==> machine->config()
machine->gamedrv       ==> machine->system()
machine->m_regionlist  ==> machine->first_region()
machine->sample_rate   ==> machine->sample_rate()

Also converted internal lists to use simple_list.
2011-03-28 09:10:17 +00:00
Couriersud
9ad9840545 sdl-config flags are now separated into INCFLAGS and COMFLAGS in sdl.mak. This fixes "make depend". [Couriersud] 2011-03-26 22:53:01 +00:00
Couriersud
9861df0600 Fix font loading in sdlmame. BDF files are just loaded as TTF by TTF_OpenFont. Load is now protected by a magic check.
Also fixed a bug in SDL1.3 keyboard mapping and changed SDL1.3 code to be compatible with recent 1.3 API changes. [Couriersud]
2011-03-26 22:51:17 +00:00
Aaron Giles
fb5091182e Cleanups and version bump. 2011-03-25 16:14:09 +00:00
Fabio Priuli
19b50e3ca6 Fixed parsing of uimodekey from .ini on SDL [Fabio Priuli] 2011-03-11 20:34:35 +00:00
Curt Coder
b67f2d8e9d Mapped KEYCODE_BACKSLASH2 to the OEM_102 key (located between LShift and Z on international keyboard layouts). [Curt Coder] 2011-03-10 11:18:29 +00:00
R. Belmont
d12a22455d SDL: Fix uimodekey for MESS [Barry Rodewald, R. Belmont] 2011-03-07 01:33:03 +00:00
Aaron Giles
06ee6804dd Converted core_options to a class. Removed a bunch of marginal
functionality in favor of alternate mechanisms. Errors are
now reported via an astring rather than via callbacks. Every
option must now specify a type (command, integer, float, string,
boolean, etc). Command behavior has changed so that only one
command is permitted. [Aaron Giles]

Changed fileio system to accept just a raw searchpath instead of
an options/option name combination. [Aaron Giles]

Created emu_options class dervied from core_options which wraps
core emulator options. Added mechanisms to cleanly change the
system name and add/remove system-specific options, versus the
old way using callbacks. Also added read accessors for all the
options, to ensure consistency in how parameters are handled.
Changed most core systems to access emu_options instead of
core_options. Also changed machine->options() to return emu_options.
[Aaron Giles]
 
Created cli_options class derived from emu_options which adds the
command-line specific options. Updated clifront code to leverage
the new class and the new core behaviors. cli_execute() now accepts
a cli_options object when called. [Aaron Giles]

Updated both SDL and Windows to have their own options classes,
derived from cli_options, which add the OSD-specific options on
top of everything else. Added accessors for all the options so
that queries are strongly typed and simplified. [Aaron Giles]

Out of whatsnew: I've surely screwed up some stuff, though I have
smoke tested a bunch of things. Let me know if you hit anything odd.
Also I know this change will impact the WINUI stuff, please let me 
know if there are issues. All the functionality necessary should 
still be present. If it's not obvious, please talk to me before 
adding stuff to the core_options class.
2011-03-03 17:05:24 +00:00
R. Belmont
65ba686867 Fix OS/2 compile [K.O. Myung-Hun] 2011-02-28 18:07:37 +00:00
Aaron Giles
9ef0bcf8f2 Cleanups and version bump. 2011-02-28 09:27:05 +00:00
R. Belmont
64736f5f19 Fix pastebin hash (no whatsnew) 2011-02-17 05:34:19 +00:00
R. Belmont
3aac5c3440 SDL: GLSL now works for all pixel formats; fixed memory leak on textures [cgwg] 2011-02-17 04:49:05 +00:00
Couriersud
fb0d7484bc osd/sdl again compiles against latest SVN 1.3. SDL 1.3 still is WIP so expect more changes. No whatsnew. 2011-02-12 13:36:42 +00:00
R. Belmont
b814401976 Fix SDL. Maybe. (no whatsnew) 2011-02-12 05:08:26 +00:00
Aaron Giles
1b54456be5 mame_file is now emu_file and is a class. It is required
to pass a core_options object to the constructor, along with
a search path. This required pushing either a running_machine
or a core_options through some code that wasn't previously
ready to handle it. emu_files can be reused over multiple 
open/close sessions, and a lot of core code cleaned up
nicely as things were converted to them.

Also created a file_enumerator class for iterating over files
in a searchpath. This replaces the old mame_openpath functions.

Changed machine->options() to return a reference.

Removed public nvram_open() and fixed jchan/kaneko16 to
stop directly saving NVRAM.

Removed most of the mame_options() calls; this will soon go 
away entirely, so don't add any more.

Added core_options to device_validity_check() so they can be
used to validate things.
2011-02-12 03:47:37 +00:00
Michaël Banaan Ananas
45e080abeb (typofix) 2011-02-09 21:22:18 +00:00
Aaron Giles
4fa610aa02 Cleanups and version bump. 2011-02-09 15:01:01 +00:00
Aaron Giles
07a66f8c54 Move generic templates from emucore.h to emutempl.h.
Normalize the tagged_list template to wrap a regular standard_list
and have similar semantics. Updated a few direct callers to handle
the changes.
2011-02-07 05:47:17 +00:00
Curt Coder
097dd84fb7 Ensured that the debugger disassembly PC cursor is visible on startup. [Curt Coder] 2011-02-06 11:27:57 +00:00
Aaron Giles
ae5dfca0bf Fix build break from last checkin.
Also replace timer_get_time() with machine->time()

1. Main conversion
timer_get_time( *)\( *([^)]+) *\)
\2->time\1()

2. Cleanup #1
&machine->time
machine.time

3. Cleanup #2
&m_machine->time
m_machine.time
2011-02-06 07:29:03 +00:00
Curt Coder
bfcb47e2da Implemented proper mouse wheel event handling in the Windows debugger. [Curt Coder] 2011-02-05 19:42:53 +00:00
Miodrag Milanovic
10da185c4e - Cleanup of WINUI depending compiling (no whatsnew)
- Rewritten some checks to be runtime instead of compile dependent
- Added winmenu.c and "menu" option in windows build
- winmenu.c provide just dummy implementation, and makes linking with actual menu implementation easier.
2011-02-04 10:13:13 +00:00
Aaron Giles
1e88333178 Converted attotime to a class, with proper operators. Removed old
global functions which are now superceded by the operators and
methods on the class. [Aaron Giles]

Required mappings are:

attotime_make(a,b)            => attotime(a,b)
attotime_to_double(t)         => t.as_double()
double_to_attotime(d)         => attotime::from_double(d)
attotime_to_attoseconds(t)    => t.as_attoseconds()
attotime_to_ticks(t,f)        => t.as_ticks(f)
ticks_to_attotime(t,f)        => attotime::from_ticks(t,f)
attotime_add(a,b)             => a + b
attotime_add_attoseconds(a,b) => a + attotime(0, b)
attotime_sub(a,b)             => a - b
attotime_sub_attoseconds(a,b) => a - attotime(0, b)
attotime_compare(a,b) == 0    => a == b
attotime_compare(a,b) != 0    => a != b
attotime_compare(a,b) < 0     => a < b
attotime_compare(a,b) <= 0    => a <= b
attotime_compare(a,b) > 0     => a > b
attotime_compare(a,b) >= 0    => a >= b
attotime_mul(a,f)             => a * f
attotime_div(a,f)             => a / f
attotime_min(a,b)             => min(a,b)
attotime_max(a,b)             => max(a,b)
attotime_is_never(t)          => t.is_never()
attotime_string(t,p)          => t.as_string(p)

In addition, some existing #defines still exist but will go away:

attotime_zero                 => attotime::zero
attotime_never                => attotime::never
ATTOTIME_IN_SEC(s)            => attotime::from_seconds(s)
ATTOTIME_IN_MSEC(m)           => attotime::from_msec(m)
ATTOTIME_IN_USEC(u)           => attotime::from_usec(u)
ATTOTIME_IN_NSEC(n)           => attotime::from_nsec(n)
ATTOTIME_IN_HZ(h)             => attotime::from_hz(h)
2011-02-03 07:52:45 +00:00
R. Belmont
28e34ea140 NetBSD support [Thomas Klausner]
Not for whatsnew: I added -Wno-conversion unconditionally to disable the 
warnings Thomas reported.  That setting is the default for GCC out-of-the-box 
but apparently not on NetBSD.  As far as I know it shouldn't cause a problem 
with any GCC version back to at least 4.0.0 so we're safe even on PPC OSX, 
but do let me know if hilarity ensues.
2011-02-02 03:29:54 +00:00
Aaron Giles
b3d7e09292 Cleanups and version bump. 2011-01-24 05:09:05 +00:00
Couriersud
c5892bda57 Added "-syncrefresh" option to osd/sdl. This will *limit* the game speed to the video refresh rate and works in -mt mode as well. The option has an effect only if "-waitsync" is specified. [Couriersud, Chris Kennedy] 2011-01-22 12:51:52 +00:00
Miodrag Milanovic
dfdc249c0d Removed not used ifdef section from winmain.c and MESS dependent ifdef from saa5050.c, this doesn't affect MAME at all (no whatsnew) 2011-01-17 18:30:36 +00:00
Aaron Giles
f5c03d12e2 Redo most of the DRC/backend support as C++
Yes, it is intentional that the x86/x64 backends compile everywhere.

Backends are now derived from drcbe_interface and implement several
required overrides.

x86emit.h now uses namespaces so that the x86/x64 emitters can co-exist.

New file uml.h/uml.c actually describes the UML language, separating
out several concepts from drcuml.c.

Lots of other changes/fixes.
2011-01-17 03:43:54 +00:00
R. Belmont
e5cc3338d9 Same fix for sockets (no whatsnew) 2011-01-16 21:05:59 +00:00
R. Belmont
2f1b7f3468 Fix inability to detect an error in sdl_write_ptty (no whatsnew) 2011-01-16 21:01:14 +00:00
Miodrag Milanovic
b11eaf0e46 Cleaned OSD windows and emu part from NEWUI dependencies (no whatsnew) 2011-01-13 09:11:34 +00:00
R. Belmont
2d32a07198 SDL OS/2 fixes [K.O. Myung-Hun] 2011-01-10 14:32:42 +00:00
Aaron Giles
1d226e8795 Build vconv in all circumstances as part of win32 build.
Always use gcc to build vconv.
Add missing extern "C" to intrinsic definitions.
Change vconv to call link.exe instead of lib.exe for libraries.
2011-01-07 05:28:57 +00:00
Miodrag Milanovic
12a5370d85 Moved image devices implementation and related UI functions to emu section from MESS [Miodrag Milanovic] 2011-01-05 15:59:06 +00:00
Michaël Banaan Ananas
6f5c23de2b mt bug 2283 fix 2011-01-04 19:42:50 +00:00
Couriersud
956e96048f Remove "makedep" stuff from sdl.mak now that the core supports it. Also split sdl-config output between INCPATH and CCOMFLAGS for linux targets. makedepend now works. [Couriersud] 2011-01-03 20:40:20 +00:00
R. Belmont
a8cc3824f1 Fix Mac compile error (no whatsnew) 2011-01-02 22:04:03 +00:00
Couriersud
5268d48065 "Copy-and-Paste" the "-bench" option from win32 to sdl. [Couriersud] 2011-01-02 21:19:32 +00:00
Couriersud
e7b559190f Only enable watchdog for sdlmame if "-str" set and smaller than 300 seconds. No whatsnew. 2011-01-02 21:02:59 +00:00
Couriersud
8386bf94a5 Implemented "-watchdog" option for SDLMame. [Couriersud] 2011-01-02 19:12:08 +00:00
Couriersud
9f300a3977 osd/sdl again compiles against latest SDL 1.3 svn. [Couriersud] 2011-01-02 15:48:43 +00:00
Aaron Giles
237d8ddce9 Argh, stupid .m files. 2011-01-01 01:18:14 +00:00
Aaron Giles
99a26bc331 Cleanups and version bump. 2011-01-01 00:59:47 +00:00
Aaron Giles
3b41606ca0 running_device -> device_t
They both already existed. No sense in having two names for the
same object type.
2010-12-31 21:42:55 +00:00
Couriersud
cc3820bc03 Update comment in sdl.mak 2010-12-29 23:22:14 +00:00
Couriersud
fb32b80591 Fixed *BSD compilation for SDLMAME. [ElBarto] 2010-12-29 18:44:37 +00:00
Couriersud
8bc7fc5f76 Fix most-likely-to-fail SDL_TTF version check. Added a warning if strikethrough is specified but not supported. [Couriersud] 2010-12-28 23:31:12 +00:00
Couriersud
96ce772581 sdlmame now also looks for fonts in "-fontpath". In addition, moved font config stuff into function search_font_config. This is in preparation to add ttf support to windows sdlmame build. [couriersud] 2010-12-28 23:01:38 +00:00
Couriersud
7c15e3019f Fixed MT4120 - "-now" on windows build crashes [Couriersud] 2010-12-28 22:06:02 +00:00
Couriersud
fe632b74c2 Some fixes to keep sdlmame aligned to SDL1.3 development. No whatsnew. 2010-12-27 00:07:35 +00:00
Couriersud
e2686259a0 Fix compile on linux when using SDL_INSTALL_ROOT. All linux builds
now actually honour up the include path provided by sdl-config.
2010-12-26 23:50:09 +00:00
R. Belmont
b4cc7cc7c1 SDL: Clear and flip 3 times on resolution changes instead of twice, required by some OpenGL drivers [Chris Kennedy] 2010-12-17 14:34:56 +00:00
Aaron Giles
6bfc3413e4 Cleanups and version bump. 2010-12-08 07:01:03 +00:00
R. Belmont
1d37415a4a Fixed BSD compile [ElBarto] 2010-12-06 14:39:18 +00:00
Miodrag Milanovic
135a1a9e08 Empty implementation for WIN32 sdlsocket to enable compile (no whatsnew) 2010-12-04 13:28:17 +00:00
Aaron Giles
57ef3a5ed6 Split the screen device into a separate module.
Converted global video routines into a video_manager.
Moved video manager initialization earlier in startup.
2010-12-02 17:26:38 +00:00
R. Belmont
ff11583e4e Same F4 fix for Mac OS X debugger (no whatsnew) 2010-11-29 16:35:11 +00:00
Aaron Giles
4a032ab057 Fix F4 shortcut so it explicitly labels the address as a number
by preceding it with "0x". This allows F4 to work properly, for
example, on the 68000 stepping to address a6, which also happens
to be a register name.
2010-11-29 16:23:20 +00:00
R. Belmont
0dd880a3cb SDL: add ptty (*IX/OS X) and sockets (all SDL builds) capability [Tim Lindner, R. Belmont] 2010-11-20 04:14:19 +00:00
R. Belmont
b7fe2d497c SDL: Mac compile warning fix [Wilbert Pol] 2010-11-16 03:16:12 +00:00
R. Belmont
b2c5f44b25 SDL: Build fixes for Ubuntu, -uifont non-ASCII rendering fix [R. Belmont, Barry Rodewald] 2010-11-16 03:14:21 +00:00
R. Belmont
64141e7c07 SDL: OS X support for -uifont [Tim Lindner] 2010-11-15 17:34:03 +00:00
R. Belmont
fb70e23067 SDL: Fix OS X and Windows builds (no whatsnew) 2010-11-13 03:50:33 +00:00
R. Belmont
f75bcedd30 SDL: -uifont now can also look up system font families like Windows [R. Belmont] 2010-11-13 02:51:23 +00:00
R. Belmont
db0b32ddb0 SDL: Support -uifont for using arbitrary TrueType fonts on Linux/BSD builds.
This takes full pathname/filename to the font, and the name can have styles 
appended as in Windows: [b] for bold, [i] for italic, [s] for strikethrough, 
and [u] for underlined.  Fonts are rendered at a size of 120 points and scaled 
down by the core, which looks superb on high-res displays.  (Liberation Sans
that comes with most recent distros looks really good).

Warning: Linux/BSD builds now require SDL_ttf 2.x.  On Fedora the required 
package names are "SDL_ttf" and "SDL_ttf-devel".
2010-11-12 03:57:19 +00:00
Aaron Giles
92b3dd111f Cleanup & version bump. 2010-11-08 09:08:55 +00:00
Scott Stone
7f4071e1f1 Incorporate MESS change into MAME core. 2010-11-06 17:24:58 +00:00
Aaron Giles
a2ce61ac6c Converted the expression engine to C++, did the usual cleanup. 2010-11-01 07:48:02 +00:00
Wilbert Pol
fd5c78edff Fix OSX compile. 2010-10-28 20:43:52 +00:00
Aaron Giles
59559fe282 Added support for OSD-generated fonts. The OSD is queried first to see
if it owns a given font (based on the name), and if it does, it is
responsible for generating bitmaps on the fly as characters are requested.

Added new option -uifont to specify the UI font. It can be set to a filename,
in which case a BDF font will be loaded. It can also be set to a font name
(assuming the OSD support is present), in which case the OSD font by that
name is used. The default value is 'default' which can be used by the OSD
to substitute a default font or by the OSD, which will default to ui.bdf
as before. In all cases, it falls back to the built-in font by default if
none of the previous options works.

On Windows, the OSD will default to Tahoma as the font name. Also on
Windows, font names can be specified with [b] to indicate bold or [i] to
indicate italic.
2010-10-24 00:16:54 +00:00
Andrew Gardner
216a806fdb [SDL Debugger] Removed an unnecessary assert and brought focus back to
the main debugger window on startup. [Andrew Gardner]
2010-10-23 06:41:57 +00:00
Andrew Gardner
df645b4a72 Fix Linux SDL build. 2010-10-23 06:14:17 +00:00
Aaron Giles
f661970a4a Make osdmini build again. 2010-10-21 16:14:46 +00:00
Aaron Giles
e4beed95a6 Create new class osd_interface to house OSD callbacks. Added new
module osdepend.c with default empty implementations. Changed
mame_execute() and cli_execute() to accept a reference to an
osd_interface which is provided by the caller.

Updated SDL and Windows OSD to create an osd_interface-derived
class and moved their OSD callbacks to be members.
2010-10-21 15:59:44 +00:00
Scott Stone
f3be589604 Import from MESS which fixes throttle mapping for Windows (non-SDL builds) (no whatsnew) 2010-10-21 14:52:42 +00:00
Aaron Giles
3ae00656d4 Cleanups and version bump. 2010-10-21 06:01:17 +00:00
Aaron Giles
9c553510dd For MSVC, explicitly include assert.h so that we can override the MSVC
version of assert(), which gets implicitly included later.
2010-10-19 14:30:14 +00:00
Aaron Giles
ec93220f95 03937: Using CTRL-C to end MAME no longer works reliably
Added explicit control handler for the console. Ctrl+C/Ctrl+Break now
explicitly terminate the process forcefully, rather than unwinding
through the system in an unexpected state. Other console events 
(exit, shutdown, logoff) request a graceful exit.
2010-10-19 14:15:46 +00:00
Aaron Giles
d8edbd14f2 Convert rendlay objects into C++, reduce the number of unused textures
allocated.

Fix texture leak in crsshair.c.
2010-10-18 01:51:58 +00:00
Aaron Giles
c30bcb6948 Fix crash when specifying -effect.
Moved -effect implementation out of OSD code and into core since
the implementations were identical across Windows/SDL and implemented
in the core itself.
2010-10-16 00:55:11 +00:00
smf-
3c6c94c8a2 fixed 64bit compiling with visual studio 2010 2010-10-14 19:29:13 +00:00
Wilbert Pol
636e86e8cc OSX compile fix. 2010-10-14 18:50:34 +00:00
Aaron Giles
3e621b169b Cleanups and version bump. 2010-10-14 07:04:16 +00:00
Aaron Giles
d9e92c7896 Slightly cleaner fix for SDL. 2010-10-13 13:43:35 +00:00
Miodrag Milanovic
eb90f8e5d4 Fix for SDL compile (no whatsnew) 2010-10-13 08:40:33 +00:00
Aaron Giles
3beb0ec246 Converted render.c objects into C++ objects. Updated all callers. 2010-10-13 06:20:10 +00:00
Andrew Gardner
d893399c85 Debugger (SDL) : Closing a memory window no longer segfaults. [Andrew Gardner] 2010-09-24 04:18:10 +00:00
Andrew Gardner
7c4604633c Debugger (SDL) : Window locations in the SDL debugger are now saved and
loaded at exit and startup. [Andrew Gardner]
2010-09-24 04:13:19 +00:00
Aaron Giles
748bbd2b07 Enable vertical scroll bars in debugger comboboxes, and resize them to
show the full text.
2010-09-21 05:20:05 +00:00
Andrew Gardner
79aab2108b **FOR REVIEW**
Log: Added preliminary support for saving debugger window locations. [Andrew Gardner]


(Notes)
* I only save the values for the SDL debugger for now.
* There is no loading of these values yet, but if this patch is confirmed good, 
  loading should be relatively straightforward to add.
* There is a slight chance this might not compile on OSes other than linux.  
  I will be available via e-mail for the next 10 hours and will assist 
  with any compilation problems if they occur.
* The patch seems like the "right way" to do things, but if I am doing anything
  suspect, please feel free to make suggestions and corrections.
2010-09-20 16:00:42 +00:00
Aaron Giles
7a4744d31d Cleanups and version bump. 2010-09-19 05:09:00 +00:00
R. Belmont
acc300e960 SDL: fix Linux and Mac builds for recent makefile changes (no whatsnew) 2010-09-16 13:40:33 +00:00
Aaron Giles
3d1a55e19e On Windows, osd_break_into_debugger() will now dump a stack crawl
if there's no debugger attached. This means that asserts should have
a full crawl now, for easier debugging.
2010-09-10 17:34:52 +00:00
Aaron Giles
58f4f9025b Added -bench <emulated-seconds> option to standardize benchmarking. 2010-09-09 05:18:02 +00:00
Aaron Giles
3598b772bc Replace "const address_space" with "address_space" throughout the system.
The purpose of making it const before was to discourage direct tampering,
but private/protected does a better job of that now anyhow, and it is
annoying now.

    s/const[ \t]+address_space\b/address_space/g;

Is basically what I did.
2010-08-19 07:26:14 +00:00
Aaron Giles
0bfacc56e6 Cleanups and version bump. 2010-07-29 13:59:41 +00:00
Aaron Giles
364e13529e Add notification of orientation of all monitors at startup via the
output system. [Laszlo Schulteisz]
2010-07-29 08:41:24 +00:00
R. Belmont
9f550bca2d Change *IX man pages to link to MAMEdev.org legal page [wallyweek] 2010-07-11 22:45:52 +00:00
R. Belmont
018a21fa53 Add *IX man pages for MAME and utils [wallyweek] 2010-07-08 14:18:07 +00:00
R. Belmont
53b25817d0 MAMEdev kant spel (Ubuntu/Canonical cares about this) [wallyweek] 2010-07-08 14:10:23 +00:00
R. Belmont
b05556b705 Fix OS X debugger (verified on PPC and Intel) 2010-07-07 03:31:58 +00:00
Aaron Giles
30662dcdef Cleanups and version bump. 2010-07-06 17:30:28 +00:00
Wilbert Pol
bcd97e9880 Fix compiling of osx debugger. 2010-07-06 16:59:04 +00:00
Aaron Giles
f7ce43f8fb Cleanup debugger interface some more. 2010-07-06 16:12:53 +00:00
Aaron Giles
8b90eb19d5 Fix SDL debugger. 2010-07-06 02:04:15 +00:00
Aaron Giles
5d21c672af Moved debugging structure away from CPUs only and attached to all
devices. Debugger now creates one for each device. C++-ified most
debugger operations to hang off the debugging class, and updated
most callers. This still needs a little cleanup, but it fixes most
issues introduced when the CPUs were moved to their own devices.

Got rid of cpu_count, cpu_first, cpu_next, etc. as they were badly 
broken. Also removed cpu_is_executing, cpu_is_suspended,
cpu_get_local_time, and cpu_abort_timeslice.

Some minor name changes:
  state_value() -> state()
  state_set_value() -> set_state()
2010-07-06 00:52:36 +00:00
Aaron Giles
c70c5fee5a Created CPU-specific device types for all CPUs, using new macros
DECLARE_LEGACY_CPU_DEVICE and DEFINE_LEGACY_CPU_DEVICE. Changed CPUs
to be their own device types, rather than all of type CPU with a
special internal subtype. Note that as part of this process I removed
the CPU_ prefix from the ALL-CAPS device name, so CPU_Z80 is just
plain old Z80 now. This required changing a couple of names like
8080 to I8080 so that there was an alphabetic first character.

Added memory interfaces to the list of fast-access interfaces. To do
this properly I had to add a separate method to devices which is
called immediately after construction, when it is possible to perform
dynamic_casts on fully-constructed objects. (This is just internal,
no changes necessary to the devices themselves.)

Some additional notes:
 * SH2 and SH4 had typedefs that conflicted with their CPU_-less names
    so I bulk renamed to structures to sh2_state and sh4_state; RB, feel
    free to choose alternate names if you don't like 'em
 * SCSP was caught doing something to the 3rd indexed CPU. Since several
    systems that use SCSP don't even have 3 CPUs, I had no idea what
    this was supposed to do, so I changed to it reference "audiocpu"
    assuming that stv was the assumed target. This is really gross and
    should be a configuration parameter, not a hard-coded assumption.
2010-07-03 00:12:44 +00:00
Aaron Giles
fa2d8a88a4 Oops, forgot to remove some dead code. 2010-07-02 03:55:48 +00:00
Aaron Giles
b67fd48c9f Winmain cleanup:
* created dynamic_bind<> template class to handle dynamically binding to
    optionally-supported functions
 * wrapped stack walking code in a class
 * wrapped symbol lookup code in a class
 * added support for parsing objdump-produced symbol dumps which include
    non-global functions for much better stack dumps and profiling in gcc builds

Also: modified makefile for win32 targets to automatically run objdump and
produce a .sym file if SYMBOLS is enabled.
2010-07-02 03:49:56 +00:00
Wilbert Pol
daccd1f46c Fixes to get OSX debugger working again. (no whatsnew) 2010-06-30 21:55:38 +00:00
Aaron Giles
77f2ea0e3e Resurrect the old sampling profiler, and improve it to be useful:
- always available now, just specify -profile <n> to enable it
 - supports stack walking to uniquely identify call chains; the <n> parameter
    to the -profile option specifies how deep to go
 - automatically turns off throttling and multithreading, and sets the number of
    processors available to 1 (since we only sample the main thread)
 - output now uses the common symbol lookup, which actually uses the PDB for
    MSVC builds and gives excellent results (may eventually figure out how to
    extract gcc symbols someday)
 - the top 30 unique call chains are output
2010-06-30 20:29:12 +00:00
Aaron Giles
265c584899 Turn off the bool warning. 2010-06-30 20:23:49 +00:00
Wilbert Pol
9a8095f9b3 Fix compiling on non-windows SDL targets. (no whatsnew) 2010-06-30 17:50:48 +00:00
Aaron Giles
733b797a3d Split mame.c into mame.c and machine.c, the latter containing the
running_machine definition and implementation.

Moved global machine-level operations and accessors into methods on the
running_machine class. For the most part, this doesn't affect drivers
except for a few occasional bits:

  mame_get_phase() == machine->phase()
  add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...)
  add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...)
  mame_get_base_datetime() == machine->base_datetime()
  mame_get_current_datetime() == machine->current_datetime()

Cleaned up the region_info class, removing most global region accessors
except for memory_region() and memory_region_length(). Again, this doesn't
generally affect drivers.
2010-06-30 03:46:21 +00:00
Aaron Giles
41b9dbb9ac Made the machine_config a proper object. Added detokenize method to
this object which can be called multiple times to append new devices
after the initial machine configuration is set up. Updated member
variables to match new naming convention.

Changed the running_machine to take a constructed machine_config
object in the constructor, instead of creating one itself, for
consistency. Also added machine->total_colors() as a shortcut to 
machine->config->m_total_colors.
2010-06-28 06:40:44 +00:00
smf-
779da649f0 fixed unused variable error. 2010-06-26 07:18:49 +00:00
Aaron Giles
50767de707 Changed device name from an overridable function to a parameter passed to
the device_config constructor. In situations where the proper name is not 
known at construction time, a generic name can be specified and then 
overridden later once the configuration is complete.
2010-06-25 15:30:51 +00:00
Aaron Giles
29b6b0de41 C++-ified the debugger views. Not quite architecturally where I would
like them, but it's a start. Split implementation of individual view
types out to separate files. Updated all callers.

Also:
 * fixed okim6295 memory view
 * changed emualloc to free resource pools from earliest to latest
    so that early objects can safely clean up stuff they allocated
2010-06-25 05:11:42 +00:00
Aaron Giles
861db1eb49 Cleanups and version bump. 2010-06-17 06:55:54 +00:00
Miodrag Milanovic
848bf53c3d - moved opresolv and zippath into /lib/util from MESS [Miodrag Milanovic]
- removed ifdef MESS from osd part since calls are needed by zippath
2010-06-16 18:04:30 +00:00
Aaron Giles
8c2c643a7e Regression fixes:
atarijsa.c: just use a generic device for the tms5220 to handle variants until
we have a proper base class (fixes eprom, eprom2 - eprom.c
"assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src")

decocass.c: invert sense of reset line to MCU (fixes All sets in decocass.c - 
Games no longer begin loading (countdown))

metro.c: use generic device for the YM sound since multiple YM chips are used.
(fixes 3kokushi, blzntrnd, dharma, dharmak, dokyusei, dokyusp, gstrik2, gstrik2j, 
karatour, ladykill, lastfort, lastforte, lastforte, lastfortg, lastfortk, skyalert, 
toride2g, toride2gg, toride2j  - metro.c
"assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src")

mitchell.c: when swapping the OKIM6295 for an MSM5205, use a different tag.
(fixes pangba, spangbl - mitchell.c
"assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src")

deco32.c: use a proper EEPROM device to fetch the space from.
(fixes tattass, tattassa - deco32.c - Crash while checking "Jack Ram" before start 
"assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src")

system1.c: use a proper z80pio_device (cleanup)

vconv.c: support -g* options for MSVC builds (cleanup)

m377101.c/g65816.c: fix fault logic for mapping icount (fixes
All sets in namcofl.c, namcona1.c, namconb1.c, nss.c, sfcbox.c, snesb.c 
airco22b, cybrcycc, dirtdash, rrf, timecrs, timecrsa - namcos22.c
Hanging immediately or shortly after start.
"assert: src/emu/schedule.c:189: ran >= *exec->m_icount")

schedule.c/diexec.c/timer.c: add temporary logging to permit direct comparisons with
earlier games timing (cleanup)

generic.c: fix computation of time for turning off the IRQ when using 
generic_pulse_irq() to account for CPU-local time (fixes
Any sets in bublbobl.c which use the which use m6801 - Frequent/Random watchdog resets.)

z80pio.c: convert internal line states to bool, and fix typo (control_write should have
been data_write in one place) (fixes Any system1.c games which use z80pio - No sound)
2010-06-14 07:40:06 +00:00
Aaron Giles
ad12251785 Remove stray bitmap_free's. 2010-06-08 23:40:57 +00:00
Wilbert Pol
cc4ff7570d SDL: Fix compiling with OSX debugger. 2010-06-08 19:50:57 +00:00
R. Belmont
3f3200082a SDL: fix compiling with GTK+ debugger 2010-06-08 14:21:52 +00:00
Aaron Giles
ccd8aaaf11 Fix SDL compile error. 2010-06-08 06:15:26 +00:00
Aaron Giles
100564d412 WARNING: There are likely to be regressions in both functionality and
performance as a result of this change. Do not panic; report issues to the
list in the short term and I will look into them. There are probably also
some details I forgot to mention. Please ask questions if anything is not
clear.

NOTE: This is a major internal change to the way devices are handled in
MAME. There is a small impact on drivers, but the bulk of the changes are
to the devices themselves. Full documentation on the new device handling
is in progress at http://mamedev.org/devwiki/index.php/MAME_Device_Basics

Defined two new casting helpers: [Aaron Giles]

  downcast<type>(value) should be used for safe and efficient downcasting
  from a base class to a derived class. It wraps static_cast<> by adding
  an assert that a matching dynamic_cast<> returns the same result in 
  debug builds.
  
  crosscast<type>(value) should be used for safe casting from one type to
  another in multiple inheritance scenarios. It compiles to a 
  dynamic_cast<> plus an assert on the result. Since it does not optimize
  down to static_cast<>, you should prefer downcast<> over crosscast<>
  when you can.
  
Redefined running_device to be a proper C++ class (now called device_t).
Same for device_config (still called device_config). All devices and
device_configs must now be derived from these base classes. This means
each device type now has a pair of its own unique classes that describe
the device. Drivers are encouraged to use the specific device types
instead of the generic running_device or device_t classes. Drivers that
have a state class defined in their header file are encouraged to use
initializers off the constructor to locate devices. [Aaron Giles]

Removed the following fields from the device and device configuration
classes as they never were necessary or provided any use: device class,
device family, source file, version, credits. [Aaron Giles]

Added templatized variant of machine->device() which performs a downcast
as part of the device fetch. Thus machine->device<timer_device>("timer")
will locate a device named "timer", downcast it to a timer_device, and
assert if the downcast fails. [Aaron Giles]

Removed most publically accessible members of running_device/device_t in
favor of inline accessor functions. The only remaining public member is
machine. Thus all references to device->type are now device->type(), etc.
[Aaron Giles]

Created a number of device interface classes which are designed to be mix-
ins for the device classes, providing specific extended functionality and
information. There are standard interface classes for sound, execution,
state, nvram, memory, and disassembly. Devices can opt into 0 or more of
these classes. [Aaron Giles]

Converted the classic CPU device to a standard device that uses the
execution, state, memory, and disassembly interfaces. Used this new class
(cpu_device) to implement the existing CPU device interface. In the future
it will be possible to convert each CPU core to its own device type, but 
for now they are still all CPU devices with a cpu_type() that specifies
exactly which kind of CPU. [Aaron Giles] 

Created a new header devlegcy.h which wraps the old device interface using
some special template classes. To use these with an existing device,
simply remove from the device header the DEVICE_GET_INFO() declaration and
the #define mapping the ALL_CAPS name to the DEVICE_GET_INFO. In their
place #include "devlegcy.h" and use the DECLARE_LEGACY_DEVICE() macro.
In addition, there is a DECLARE_LEGACY_SOUND_DEVICE() macro for wrapping
existing sound devices into new-style devices, and a 
DECLARE_LEGACY_NVRAM_DEVICE() for wrapping NVRAM devices. Also moved the
token and inline_config members to the legacy device class, as these are
not used in modern devices. [Aaron Giles]

Converted the standard base devices (VIDEO_SCREEN, SPEAKER, and TIMER) 
from legacy devices to the new C++ style. Also renamed VIDEO_SCREEN to
simply SCREEN. The various global functions that were previously used to
access information or modify the state of these devices are now replaced
by methods on the device classes. Specifically:

  video_screen_configure()             == screen->configure()
  video_screen_set_visarea()           == screen->set_visible_area()
  video_screen_update_partial()        == screen->update_partial()
  video_screen_update_now()            == screen->update_now()
  video_screen_get_vpos()              == screen->vpos()
  video_screen_get_hpos()              == screen->hpos()
  video_screen_get_vblank()            == screen->vblank()
  video_screen_get_hblank()            == screen->hblank()
  video_screen_get_width()             == screen->width()
  video_screen_get_height()            == screen->height()
  video_screen_get_visible_area()      == screen->visible_area()
  video_screen_get_time_until_pos()    == screen->time_until_pos()
  video_screen_get_time_until_vblank_start() == 
                                 screen->time_until_vblank_start()
  video_screen_get_time_until_vblank_end() == 
                                 screen->time_until_vblank_end()
  video_screen_get_time_until_update() == screen->time_until_update()
  video_screen_get_scan_period()       == screen->scan_period()
  video_screen_get_frame_period()      == screen->frame_period()
  video_screen_get_frame_number()      == screen->frame_number()

  timer_device_adjust_oneshot()        == timer->adjust()
  timer_device_adjust_periodic()       == timer->adjust()
  timer_device_reset()                 == timer->reset()
  timer_device_enable()                == timer->enable()
  timer_device_enabled()               == timer->enabled()
  timer_device_get_param()             == timer->param()
  timer_device_set_param()             == timer->set_param()
  timer_device_get_ptr()               == timer->get_ptr()
  timer_device_set_ptr()               == timer->set_ptr()
  timer_device_timeelapsed()           == timer->time_elapsed()
  timer_device_timeleft()              == timer->time_left()
  timer_device_starttime()             == timer->start_time()
  timer_device_firetime()              == timer->fire_time()

Updated all drivers that use the above functions to fetch the specific
device type (timer_device or screen_device) and call the appropriate
method. [Aaron Giles]

Changed machine->primary_screen and the 'screen' parameter to VIDEO_UPDATE
to specifically pass in a screen_device object. [Aaron Giles]

Defined a new custom interface for the Z80 daisy chain. This interface
behaves like the standard interfaces, and can be added to any device that
implements the Z80 daisy chain behavior. Converted all existing Z80 daisy
chain devices to new-style devices that inherit this interface.
[Aaron Giles]

Changed the way CPU state tables are built up. Previously, these were data
structures defined by a CPU core which described all the registers and how
to output them. This functionality is now part of the state interface and
is implemented via the device_state_entry class. Updated all CPU cores
which were using the old data structure to use the new form. The syntax is
currently awkward, but will be cleaner for CPUs that are native new 
devices. [Aaron Giles]

Converted the okim6295 and eeprom devices to the new model. These were
necessary because they both require multiple interfaces to operate and it
didn't make sense to create legacy device templates for these single cases.
(okim6295 needs the sound interface and the memory interface, while eeprom
requires both the nvram and memory interfaces). [Aaron Giles]

Changed parameters in a few callback functions from pointers to references
in situations where they are guaranteed to never be NULL. [Aaron Giles]

Removed MDRV_CPU_FLAGS() which was only used for disabling a CPU. Changed
it to MDRV_DEVICE_DISABLE() instead. Updated drivers. [Aaron Giles]

Reorganized the token parsing for machine configurations. The core parsing
code knows how to create/replace/remove devices, but all device token
parsing is now handled in the device_config class, which in turn will make
use of any interface classes or device-specific token handling for custom
token processing. [Aaron Giles]

Moved many validity checks out of validity.c and into the device interface
classes. For example, address space validation is now part of the memory
interface class. [Aaron Giles]

Consolidated address space parameters (bus width, endianness, etc.) into
a single address_space_config class. Updated all code that queried for
address space parameters to use the new mechanism. [Aaron Giles]
2010-06-08 06:09:57 +00:00
Fabio Priuli
7d09e1a3d8 small change required by MESS: TAB should not turn on the MAME Internal UI if the user has enabled newui. No effect in MAME and, hence, no whatsnew mention needed.
While at it, I also associated ESC to Menu bar toggling when in newui (like many other emulators for Windows), given that user would quit MESS with File > Exit in the menu bar.
2010-06-04 18:37:22 +00:00
Couriersud
53c0d14d8c SDLMAME now compiles against SDL 1.3 up to HG rev 4464. Everything beyond that revision is completely broken since Sam ripped out multi-keyboard and multi-mice support. Further information in README_SDL13.txt [Couriersud] 2010-06-03 22:27:48 +00:00
R. Belmont
918535de88 SDL: remove problematic live render type toggle and default OS X to OpenGL 2010-06-02 02:15:58 +00:00
Scott Stone
765aa09be9 Fixed a warning in Visual Studio 2010 that was introduced by a previous commit. [Oliver Stoneberg] 2010-05-28 00:15:39 +00:00
R. Belmont
8a6b779c4a SDL: fix compilation for GTK+ 2.20 and later [R. Belmont, Wingman] 2010-05-27 03:23:18 +00:00
Scott Stone
2a0f9cdbb8 Corrected stack walk by using UNICODE_POSTFIX. Fixed some incorrect function declarations in winmain.c. [Oliver Stoneberg] 2010-05-15 21:07:54 +00:00
Michaël Banaan Ananas
b80779d95e work around gcc 4.5 (harmless) warning:
case value '13' not in enumerated type 'D3DTEXTURESTAGESTATETYPE'
(and other cases)
2010-05-13 20:37:19 +00:00
Michaël Banaan Ananas
87b8c8a6ab (gcc 4.5 compile error) 2010-05-05 17:32:32 +00:00
Aaron Giles
64b3a63fff Fix for Win32 SDL build. 2010-05-05 02:00:25 +00:00
Scott Stone
ca0f74f334 Fix the memory leaks with the strconv.c function by
using osd_malloc() instead.  Fixed other memory leaks as well.  [Oliver Stoneberg]
2010-04-23 17:10:03 +00:00
Scott Stone
d90ce8dfe3 Remove some stray invalid code in start_profiler() [Oliver Stoneberg] 2010-04-23 16:51:51 +00:00
Aaron Giles
dfb06b75f2 Make these extern "C" so they play nice with all tools. 2010-04-08 07:49:38 +00:00
Olivier Galibert
3c6e99b9fa Fix SDL debugger typo. 2010-03-22 20:27:10 +00:00
Fabio Priuli
c02b195ede several cleanups based on cppcheck and VS2008 Code Analysis [Oliver Stöneberg]
split.c: made the "split" return the actual result instead of just 0. [Oliver Stöneberg]

clifront.c: made the identation of the CPU device in -listdevices the same like the others [Oliver Stöneberg]

i386.c: gave some fatalerror() calls in the i386 proper messages [Oliver Stöneberg]

ssem.c: fixed compilation of SSEM core with SSEM_DISASM_ON_UNIMPL [Oliver Stöneberg]

srcclean.c: small wording change in the srcclean summary [Oliver Stöneberg]

sdl/window.c: fixed a potential memory leak in  sdlwindow_video_window_create() [Oliver Stöneberg]
2010-03-17 11:59:16 +00:00
R. Belmont
3c69869db3 SDL: fix Fortify-reported stack smash [Belegdol] 2010-03-08 02:45:15 +00:00
Aaron Giles
db548c8689 Fix compile error. 2010-03-04 09:32:38 +00:00
Aaron Giles
963a16b17b Sync with Windows version. 2010-03-04 09:19:45 +00:00
Couriersud
a88ab87089 Tidied up includes in a number of files in src/osd/sdl. [couriersud] 2010-02-28 12:16:38 +00:00
Scott Stone
000351226a Corrected default assignment of F10 as the default throttle on/off key for MAME. The #ifdef MESS is needed here due to it's unique old/new UI setup. [Miodrag Milanovic] 2010-02-27 17:24:39 +00:00
Miodrag Milanovic
3a4544a651 ui.c,ui.h,windows/input.c: [Miodrag Milanovic]
- removed ui_use_new_ui check used by MESS code
- moved ui_mess_handler_ingame call in proper place, so device UI callbacks works again
- removed toggle of menu bar (MESS related)
2010-02-16 12:45:38 +00:00
Aaron Giles
28c18703aa osdcore files MUST NEVER include headers from the core emulator. 2010-02-14 22:07:25 +00:00
Couriersud
977896a710 - removed window config from video_config 2010-02-14 19:59:49 +00:00
Aaron Giles
6b663f66a7 Cleanups and version bump. 2010-02-14 16:59:22 +00:00
Miodrag Milanovic
a347804fe3 Made uimodekey default to "auto" and let OSD decide about default key. (no credit) 2010-02-14 14:15:55 +00:00
Couriersud
84936e07bd Fix r8303 2010-02-14 14:08:57 +00:00
Couriersud
715a00f8c0 - Remove stray undef
- Rename inlined func CLSH to clamp
2010-02-14 14:01:40 +00:00
Couriersud
de2aa6fdf0 - sdldir.c: Cleanup the #ifdef hell a bit.
- sdlfile.c: Cosmetic cleanups; what's the point in having #ifdef'd code for pwrite and lseek/fwrite, will get rid of that later.
2010-02-14 13:45:01 +00:00
Couriersud
fbbf48d668 Workaround for gcc-4.3 reporting a false warning on solaris.
- Disable -Werror for this file only. I did not want to alter fine code only because complains about it.
2010-02-14 11:47:29 +00:00
Couriersud
6ee5fc726a Fix sdldir.c
- For most targets this only worked when reading the current directory.
- Build full path now for stat so the file is actually found.
2010-02-14 00:40:17 +00:00
Miodrag Milanovic
d63d1711eb osd_get_emulator_directory removed (no credit) 2010-02-13 20:19:14 +00:00
Couriersud
a7eb1c4097 No credit
- put a stub for osd_get_clipboard_text into sdlos_os2.c 
- removed a misleading statement form sdlos_unix.c
2010-02-13 19:35:37 +00:00
Couriersud
5c2e28e845 No credit, please
- put code not actually required in MAME into "#ifdef MESS"
- Moved global definition of sdl_cwd from sdl_file.c back to sdl_main.c
2010-02-13 19:26:39 +00:00
Miodrag Milanovic
918bc4c77e This should fix build. 2010-02-13 18:23:55 +00:00
Miodrag Milanovic
9758c13b82 - Removed not used OSD functions
- Placed new functions into sdlos subfiles since they need different implementation
(no whatsnew needed)
2010-02-13 17:20:25 +00:00
Couriersud
a7dea2f6eb - Revert changes accidentally committed.
This is WIP code using hash tables for texture lookups. Not yet stable.
2010-02-12 22:45:29 +00:00
Couriersud
377fc28f9b - Removed changelog notes from osd_sdl.h
- Moved "known bugs" to README_SDL13.txt

This is what has been there:

    - fixed returning (w,h) = (0,0) in get_max_bounds
    - new video driver "sdl13" utilitizing SDL texture and line
      drawing support. Accelerated drivers like directfb now
      may attain opengl speed. DirectFB does with a radeon card.
      The driver determines which pixel formats perform best and
      converts textures to these pixel formats.
      Supported options:
      -waitvsync
      -filter
      -prescale
      Supported renderdrivers:
      X11: opengl, software, x11 (no artwork!)
      DirectFB: directfb, software, opengl (special setup, slow)
      Windows: software, gdi (no artwork)
    - SDL1.3: Clear bck when moving
    - SDL1.3: now compiles on win32
    - SDL1.3: Support screen refresh rates, provided the sdl video
      layer supports them (e.g. X11).
    - Use video_config.waitvsync (previously option was queried)
    - -video soft / -sm  now supports -prescale
    - removed reqwidth, reqheight from sdl_monitor_info; not used anywhere
    - removed layerconfig from sdl_video_config; not used anywhere

    - fixed yuv issues (firefox) / this was a bug I introduced
    - removed deprecat.h from output.c
    - Separated keyboard and mouse initialization into separate functions
    - added _FORTIFY_SOURCE to verbose compiler define output.
    - remove MAX_CPU from debugwin.c
    - fixed vsync handling in SDL1.3 in soft/opengl drivers
    - "waitvsync" also supported by "soft" driver in SDL1.3
    - multiple mice and keyboards supported in SDL1.3
    - support for DISTRO= make option
    - got rid of "-joymap" and "-joymap_file"
    - add -joy_idx[0-7] -keyb_idx[0-7] -mouse_idx[0-7] which
      specify, which device is allocated to to e.g. Mouse 1, Mouse 2, ...
    - moved define of THREAD_COOPERATIVE into sdl.mak and renamed to
      NO_THREAD_COOPERATIVE. Changed references to #ifndef
    - define NO_DEBUGGER in sdl.mak
    - Solaris now uses -DNO_AFFINITY_NP
    - added machine to window_info, removed deprecat.h from drawogl.c

    - For DEBUG=1 builds, disable input grapping while windowed
    - Fixed WIN32 compile
      Wrote setenv function since mingw does not provide one.
      Implemented osd_event_* as inline functions for win32 build.
      We should at some point merge sdlwork.c and winwork.c and push it
      to the core, letting sdlsync.c provide the necessary details.
    - Removed keybled.c and references
    - Added output.c and output.h. These will look for a fifo or file
      /tmp/sdlmame_out and write output notifiers to it.
      Added a sample client ledutil.sh to src/osd/sdl which turns
      leds on and off and provides a debug (log) facility.
    - removed os2work.c

    - replaced window->render_lock with event window->rendered_event
      For multiple windows and "-mt", the old code would allow filling up
      the workqueue with 1000s of entries, since the lock would not block while
      another window is rendered. The osd_event establishes a barrier which
      is only freed if the last window blit operation has finished.
    - Set SDL_VIDEO_GL_DRIVER if -gl_lib is given. The SDL directfb driver is picky about
      this. Added reminder: FIXME: move lib loading code from drawogl.c here. This may be
      used to disable opengl if no library was loaded.
    - SDL1.3/video=opengl: Fixed windows not being updated after another window was resized
    - for -verbose, output some information about renderer (-video soft)
    - initialize mouse_enabled with option "-mouse". Affects both SDL1.2 and SDL1.3
      This will hide the mouse if you specify "-mouse".
    - SDL1.2: added blitmode "async" which sets SDL_ASYNCBLIT
    - SDL1.2: removed blitmodes "hwbest" and "hwblit"
    - added blitmode "hwbest" for antialiased and smoothed scaling now that the
      directfb driver supports it. This is also supported by the 1.3 opengl
      render backend
    - added sdlinput_release_keys to cope with lost keyboard events in SDL1.3
    - some identing in drawogl.c
    - rename SDL_* macros to SDLMAME_* (avoid name clashes)
    - got rid of VIDEO_SCALE_MODE constants. Scale modes are now handled in drawsdl.c.
      Starting mame with eg. -video soft -sm yuy2 on X11 no longer crashes.
    - some more changes to input.c to avoid resize loops (issue for directfb)

    - working ui mouse inputs for SDL1.2 and SDL1.3 incl. yuv modes
    - added blitmode "hwblit" (SDL1.3) for rgb hardware scaling
    - rename "-yuvmode" option to "-scalemode"
    - rename yuv_mode and derivatives to scale_mode
    - moved extra_flags into sdl_info
    - moved callbacks indow sdl_window_info
    - made a number of flags (e.g. yuvmode) window relative
         - changing of yuvmodes and opengl scale effects is working with SDL 1.3
    - improved fullscreen handling
    - removed HAS_WINDOW_MENU - this has no effect nowhere
    - removed underscores in header defines, e.g. __SDL_SYNC__ ==> __SDLSYNC__
    - added SDLMAME_HAS_DEBUGGER define
    - removed #if 0 inw window.c
    - added option "-audiodriver" to specify the SDL audio driver
    - added option "-videodriver" to specify the SDL video driver
    - added option "-renderdriver" to specify the SDL renderer driver
    - changed environment SDLMAME_GL_LIB into option -gl_lib
    - added some more SDL_ENV defines
    - move keymap reading into separate function
    - SDL_EnableUNICODE for all builds (not only MESS)
    - SDL1.3 : Mouse & text input for ui

    - removed  osd_event_wait_multiple from sdlsync.h
    - removed some includes not needed
    - reorganized texcopy/scale2x
    - removed effect.h
    - removed effect_func.h
    - indenting
    - put osd_copyfile, osd_stat into #ifdef MESS
    - added code which implements events without the need
      for pthreads. This is commented out, since
      owever, it horribly fails, if
      threads > num processors as is the case if you
      enable "-mt"
    - rename mame_bitmap to bitmap_t
    - introduced define OSDWORK_CALLBACK to prototype and
      define functions to be passed to sdlwork.c

    - fixes from judge for warnings / may reappear (glade)
    - more warnings fixed / may reappear (glade)
    - moved osdefs.h into sdlprefix.h
    - removed osdefs.h
    - finally removed sdlmisc.h

    - create drawogl.c and moved ogl relevant stuff there
    - draw.window_init() now called after window creation
    - removed window.opengl flag
    - added sdl_window_info as parameter to all functions in window.h
    - rename SDL_VERSIONNUM to SDL_VERSION_ATLEAST
    - removed all uclock stuff in sdlmisc.[ch]
    - minor cleanups

    - fixed compile issues against SDL13
    - fixed input issues with SDL13
    - stricter checks for USE_OPENGL, e.g. for options
    - move sdlvideo_loadgl to window.c, rename it to sdlwindow_loadgl and make it static
    - moved yuv_blit.c into drawsdl.c
    - renamed compute_blit_surface_size to sdlwindow_blit_surface_size
    - renamed drawsdl_destroy_all_textures to drawogl_destroy_all_textures and
      moved it to _sdl_draw_callbacks
    - removed print_colums
    - rename misc.h to sdlmisc.h
    - moved some includes from .h to .c
    - rename led_init to sdlled_init for consistency
    - rename sdl_init_audio to sdlaudio_init for consistency
    - fixed some indentation issues
    - removed ticker.h & dirty.h

    - changed all [f]printf to mame_printf_verbose|error|warning
    - removed obsolete frameskipping code
    - removed obsolete throttle code
    - removed fastforward
    - removed framestorun
    - introduced SDLOPTION constants for a number of options
    - add more verbose info for YUV

    - removed dirty.h
    - removed ticker.h

    - remove win_trying_to_quit
    - changed win_use_mouse to static use_mouse
    - removed win_key_trans_table
    - removed keyboard typematic definitions from input.h
    - made sdl_monitor_list static
    - removed hwstretch (sdl_video_config)
    - removed syncrefresh (sdl_video_config)
    - removed triplebuf (sdl_video_config)
    - removed sdl_has_menu
    - fixed memory_leak (window.c)

    - moved prototypes from drawsdl.c to window.h
    - removed joystick calibration code
    - "#if 0" code which is unreachable
    - "#if 0" code which is never used
    - moved pick_best_mode to window.c
    - removed pause_brightness option
    - added more SDLOPTION_ defines

    - renamed void yuv_lookup_init to drawsdl_yuv_init (global namespace)
    - rmoved some obsolete code
    - add SDL1.3 compatibility

    - fixed some compile issues
    - moved clear_surface into window thread
    - got SDL1.3 -mt working - still crashing on exit

    - removed "digital" option
    - removed device selection options
    - added more SDLOPTION defines
2010-02-12 22:42:31 +00:00
Couriersud
3decc6f78c Fix OSD=sdl win32 compile 2010-02-12 21:26:26 +00:00
Couriersud
f529fad8b3 Move functions from sdlclip.c to sdlos_*
- X11 clipboard code will now be compiled and will honor -DNO_X11
2010-02-12 21:21:42 +00:00
Couriersud
0ca347634e Minor cleanup - no whatsnew 2010-02-12 19:08:42 +00:00
Miodrag Milanovic
0a6b13608d - Moved natural keyboard support from MESS to MAME
- Moved OSD file functions and clipboard access functions into OSD core
2010-02-12 15:40:11 +00:00
Miodrag Milanovic
76d0a58a18 Made SDL windows build able to run (needs -window option to start) (no whatsnew) 2010-02-12 12:31:09 +00:00
Couriersud
88946d721a Added DEBUG_FLAG_OSD_ENABLED to allow coexistence of debuggers going forward.
Replaced all occurrences of OPTION_DEBUG in src/osd/* by checking machine->debug_flags
Replaced all occurrences of DEBUG_FLAG_ENABLED in src/osd/* by DEBUG_FLAG_OSD_ENABLED 
For the time being, DEBUG_FLAG_OSD_ENABLED is default (set in mame.c)
Debugger: avoid clearing DEBUG_FLAG_OSD_ENABLED
2010-02-05 01:35:52 +00:00
Couriersud
d128c47dee Fix DISTRO=gcc44-generic make shortcut to use gcc-4.4 properly (-V 4.4 does not work for linking) 2010-02-04 23:29:20 +00:00
Couriersud
3f9738c46c Added comment that size hints are not really working. [No credit] 2010-02-04 23:27:11 +00:00
R. Belmont
14981a97b5 Fix immediate crash on startup of GTK debugger 2010-01-30 21:10:01 +00:00