Commit Graph

23 Commits

Author SHA1 Message Date
Miodrag Milanovic
a3ab49e6e1 cdrom - Fixed offset calculation thanks to mahlemiut (no whatsnew) 2011-08-20 09:46:03 +00:00
Miodrag Milanovic
36136e2293 Added support for loading other image types to cdrom device, with use of chdman part of code [Miodrag Milanovic] 2011-08-20 06:47:40 +00:00
Angelo Salese
a23c194ed5 Port from MESS, nw 2011-06-28 14:23:18 +00:00
R. Belmont
3caf684959 cdrom: convert Mode 1 Form 1 sectors to Mode 1 raw if requested [R. Belmont] 2011-06-25 03:21:55 +00:00
Scott Stone
809c406e35 Added many instances of missing static and const qualifiers to MAME, and disabled a fair chunk of dead code in konamiic.c. [Atari Ace] 2010-06-17 14:04:37 +00:00
Aaron Giles
861db1eb49 Cleanups and version bump. 2010-06-17 06:55:54 +00:00
R. Belmont
842282c0fa chdman/cdrom updates: [R. Belmont]
- CDRWIN .bin/.cue images now supported for both input and output
- Pregap and postgap information is now preserved in the format
- Output of CDRDAO images is significantly improved

Existing CHD-CDs will continue to work fine and for data-only discs no action
needs to be taken.  For mixed data/audio discs (e.g. analog 573/Bemani games) 
they should be re-converted for better preservation.
2010-05-30 16:24:14 +00:00
Michaël Banaan Ananas
720e86216b lib/util/cdrom.c: Fixed stack corruption in CHD code [Oliver Stöneberg] 2010-05-10 13:10:46 +00:00
R. Belmont
5c14e75314 cdrom: correct header length for form 2 raw sectors [R. Belmont] 2010-04-25 18:27:52 +00:00
Couriersud
9f669d0121 lib/util now includes stdlib.h where needed 2010-01-17 20:15:47 +00:00
Aaron Giles
2d22e450f2 Cleanups and version bump. 2009-10-12 08:45:25 +00:00
Aaron Giles
17576a7e6a Moved all files in src/lib/util over to straight BSD and common
copyright, with permission of all significant contributors.
2009-10-10 06:02:03 +00:00
Aaron Giles
3b302a8bae Cleanups and version bump. 2009-03-19 07:28:58 +00:00
Aaron Giles
e0ccde49a3 Moved chd_clone_metadata code into chdman.c so that it can intelligently
update old tags.

Modified cdrom.c to expose metadata read/write functions, and changed
chdman to use them. Also changed chdman to parse old-style metadata and
convert it to new-style metadata since we're going to need to re-do this
anyway and the two won't hash to the same value.

Added completely untested support for the ident metadata to the hard
disk creation path. If a filename is provided immediately after the
source filename, it is taken as an ident file and processed for CHS
data and added. Other metadata types can be added afterwards via
-addmeta.
2009-03-10 15:09:00 +00:00
Aaron Giles
e8c09b35f6 Added flags to the metadata entries, encoded in the top bit. Right now
it is a no-op, but eventually will be used to indicate which bits of
metadata are included in the overall checksum.
2009-03-05 07:35:24 +00:00
Aaron Giles
e2757c60d2 Modified the makefile to support experimental optional C++
compilation:
 - new option CPP_COMPILE to trigger this (off by default)
 - split CFLAGS into common, C-only, and C++-only flags
 - when enabled, CPP_COMPILE causes 'pp' to be appended to 
    the target name

NOTE THAT THE SYSTEM CANNOT ACTUALLY BE COMPILED THIS WAY 
YET. IT IS JUST AN EXPERIMENT.

Modified lib.mak to always build zlib/expat as C regardless 
of CPP_COMPILE.

Modified windows.mak to fix warnings with MAXOPT=1, and to 
leverage the new CFLAGs definitions.

Modified vconv.c to do appropriate conversions for new C++ 
options.

Updated sources so that libutil, libocore (Windows), and 
libosd (Windows) can be cleanly compiled as C or C++. This
was mostly adding some casts against void *.

Fixed a few more general obvious problems at random 
locations in the source:
 - device->class is now device->devclass
 - TYPES_COMPATIBLE uses typeid() when compiled for C++
 - some functions with reserved names ('xor' in particular)
    were renamed
 - nested enums and structs were pulled out into separate
    definitions (under C++ these would need to be scoped to
    be referenced)
 - TOKEN_VALUE cannot use .field=x initialization in C++ :(
2009-02-28 22:10:06 +00:00
R. Belmont
c6e16e1925 02456: wrong sector size at CD_TRACK_MODE2 conversion routine 2008-10-30 03:08:35 +00:00
Couriersud
492612b6c9 Various clean ups:
* remove more unreachable code
* identify more functions not being used
* Changed a number of global functions to being static
2008-03-01 16:54:52 +00:00
Aaron Giles
4c5cebc661 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix some comments

Hi mamedev,

The following patch updates the initialization comments at the top of
mame.c and corrects/adds a few filename declarations at the top of a
handful of files.

~aa
2008-02-03 00:56:06 +00:00
Aaron Giles
ee9f88963c Copyright cleanup:
- removed years from copyright notices
 - removed redundant (c) from copyright notices
 - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
2008-01-06 00:47:40 +00:00
Aaron Giles
415aebd2bd Rewrote sbrkout driver based on schematics:
* XTAL-based timing
 * Correct video timing
 * Full memory map
 * Correct memory usage ("zero page" RAM is shared with videoram)
 * Removed all input hacks
 * Fixed interrupt generation
 * Connected coin counters
 * Added save state support

Also fixed incorrect dependency in cdrom.c.
2008-01-03 09:01:18 +00:00
Aaron Giles
460437f8d1 (From Atari Ace)
The attached patch adjusts most conditional logging in MAME to use the
idiom "do { if (VERBOSE) logerror x; } while (0)".   This has the
benefit that the compiler checks the syntax of the logging even in the
case it will be eliminated, and in fact a number of cases here needed
adjustments to compile because of this.
2007-12-31 02:04:39 +00:00
Aaron Giles
7b77f12186 Initial checkin of MAME 0.121. 2007-12-17 15:19:59 +00:00