Commit Graph

183 Commits

Author SHA1 Message Date
Angelo Salese
e6050ace10 Cleanups and version bump 2011-06-19 19:29:25 +00:00
Scott Stone
7199d34a67 Fixed 04376: Typo in lib/util/opresolv.c (no whatsnew) 2011-06-16 16:58:23 +00:00
Miodrag Milanovic
45fa774c24 Moved rest of mess formats to lib before rewrite(no whatsnew) 2011-06-13 09:20:58 +00:00
Angelo Salese
a449c766a2 Cleanups and version bump 2011-06-05 22:35:20 +00:00
R. Belmont
52d71359e2 Last round of GCC 4.6 fixes (no whatsnew) 2011-05-30 04:13:28 +00:00
R. Belmont
9bb0a24eb1 GCC 4.6 "variable assigned but not used" fixes, part 1 (no whatsnew) 2011-05-30 02:30:20 +00:00
Miodrag Milanovic
5268e8a68b Fix for unmounting not detected image files (no whatsnew) 2011-05-25 13:56:44 +00:00
Miodrag Milanovic
59ff551237 Fix for tools building (no whatsnew) 2011-05-10 12:18:09 +00:00
Angelo Salese
7878118446 Cleanups and version bump 2011-05-08 19:52:50 +00:00
Miodrag Milanovic
f7d01e8bf5 Fix issues with define of logerror (no whatsnew) 2011-05-07 10:57:23 +00:00
Miodrag Milanovic
e2a7503880 formats lib - Removed some core dependency, put back asserts and made logging mapping depend of define (no whatsnew) 2011-05-07 10:09:26 +00:00
Miodrag Milanovic
62d841c270 Moved format handling and all formats to separate library [Miodrag Milanovic] 2011-05-06 19:42:26 +00:00
R. Belmont
70c52a193b astring: don't copy a pointer onto itself (not harmful, but annoying in Valgrind) (no whatsnew) 2011-05-01 01:00:21 +00:00
Aaron Giles
932a42eac4 Be consistent about template argument naming. 2011-04-30 20:37:06 +00:00
R. Belmont
45d9031cc8 astring: Fix build on NetBSD and other systems where toupper() is a macro [Thomas Klausner] 2011-04-23 21:54:20 +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
fb5091182e Cleanups and version bump. 2011-03-25 16:14:09 +00:00
Aaron Giles
7238b32349 Fix minor oops. 2011-03-09 02:58:54 +00:00
Aaron Giles
658745f3f0 Fix -no<option> for booleans
Fix crash when running with -log
2011-03-05 04:23:33 +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
Aaron Giles
9ef0bcf8f2 Cleanups and version bump. 2011-02-28 09:27:05 +00:00
Fabio Priuli
92b1e77e6d megadriv.c: Rewritten SegaCD/MegaCD emulation [David Haywood]
cdrom.h: Added alt lba_to_msf conversion needed by SegaCD/MegaCD [David Haywood]
2011-02-12 15:30:18 +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
Couriersud
8e97bca711 Fix yuv factors in palette normalization. The web is full of errors... 2011-02-06 23:36:17 +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
Couriersud
10ad09bac8 Fix a bug in palette_normalize_range which caused color distortion.
The luminance normalization now converts r,g,b to y,u,v and
normalizes y prior to converting back to r,g,b. This affects e.g. radarscp, dkong and mario drivers. [Couriersud]
2011-01-28 07:42:32 +00:00
Aaron Giles
b3d7e09292 Cleanups and version bump. 2011-01-24 05:09:05 +00:00
Miodrag Milanovic
9699603819 - Display suggestions in case commands that require game name are called and there were no matching games [Miodrag Milanovic]
- Display suggestions for driver even if there are additional parameters that do not match (used on MESS where we have driver dependent parameters)
2011-01-23 16:55:11 +00:00
Miodrag Milanovic
c25886cea3 Ignore warnings for non existing options in previous level of ini files (parent for example) (no whatsnew) 2011-01-21 09:17:35 +00:00
Miodrag Milanovic
f3ac110d76 Added new flag for options OPTION_DRIVER_ONLY, and marked bios and ramsize as such, since they do not need to be loaded from parent drivers since those are quite driver dependent (no whatsnew) 2011-01-18 10:31:47 +00:00
Miodrag Milanovic
4725df36ac Fixed some long standing issues with image device config (no whatsnew) 2011-01-17 15:40:31 +00:00
Miodrag Milanovic
9fd74516f6 Made MESS drivers too load config from parent drivers (as MAME) but images are only taken from driver itself or command line (no whatsnew) 2011-01-17 13:37:26 +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
Fabio Priuli
6f4d32a59c revert silly change 2011-01-12 15:56:03 +00:00
Fabio Priuli
413967aa4f astring.h: fixed a duplicate name [Fabio Priuli] 2011-01-12 14:53:31 +00:00
Aaron Giles
b276730d7d tagmap_hash is supposed to be fast. Calling strlen is not the way to be fast. 2010-12-12 16:26:31 +00:00
Miodrag Milanovic
84c873b4fd Fixed debug command symlist (bug #4131) [Robbbert] 2010-12-12 09:50:47 +00:00
Aaron Giles
92b3dd111f Cleanup & version bump. 2010-11-08 09:08:55 +00:00
Curt Coder
8734e944ee Added UTF-8 constants for cursor key arrows, and accented characters on the Swedish/Finnish keyboard layout. [Curt Coder] 2010-11-05 06:21:40 +00:00
Aaron Giles
d4a893ffbb Fix O umlaut like I suggested, hoping this will fix XML parsing for -listxml 2010-11-04 06:44:54 +00:00
Aaron Giles
a2ce61ac6c Converted the expression engine to C++, did the usual cleanup. 2010-11-01 07:48:02 +00:00
Andrew Gardner
b6647f7ae1 [Util] Added + and += operators to the astring class. 2010-10-23 06:38:17 +00:00
Aaron Giles
ce80e373b2 Since PNG writing is used for MNG as well, switch back to default compression
instead of best compression in order to keep the performance reasonable.
2010-09-30 05:19:33 +00:00
Aaron Giles
0e672ba6eb Cleanups and version bump. 2010-08-30 15:20:58 +00:00
Aaron Giles
0cbdc36bdf Add a non-const bool operator. 2010-08-26 15:55:34 +00:00
Miodrag Milanovic
82c98dfa1b Since previous fix made lot of issues, found better solution for this astring bool problem (no whatsnew) 2010-08-22 12:36:56 +00:00
Miodrag Milanovic
0bd74f6269 Removed bool operator, and changed operator char *() to return NULL in case of NULL string, which makes if conditions to work properly.
Require full recompile. (no whatsnew)
2010-08-22 11:07:03 +00:00
Aaron Giles
0e09afc1a8 Added bool operator to astring, returning true if the string is
not empty. Conveniently, this creates ambiguity if you write
astring == NULL. Rooted out remaining cases where we were doing
that and fixed them.
2010-08-21 19:23:48 +00:00
Aaron Giles
05702c5f07 Added basic comparison operators to the astring class. 2010-08-19 16:13:51 +00:00
Aaron Giles
7ae55db1ec Cleanups and version bump. 2010-07-22 05:24:06 +00:00