Commit Graph

26 Commits

Author SHA1 Message Date
Michaël Banaan Ananas
ff95e0a898 ini file write: skip those <UNADORNED..> options, and don't start the file with a newline 2011-08-22 16:04:36 +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
ba15f08a16 Added support for multi level slot devices [Miodrag Milanovic]
Now it is possible to attach slot device to other slot device, also
containing multiple image devices under it.
2011-06-27 12:37:56 +00:00
Aaron Giles
fb5091182e Cleanups and version bump. 2011-03-25 16:14:09 +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
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
7ae55db1ec Cleanups and version bump. 2010-07-22 05:24:06 +00:00
Miodrag Milanovic
fcd17cc3af - Added new operation on options which enables adding of parameter and executing it's callback
- Updated parse_ini_file so before INI is loaded set of driver name is done, and therefore needed callback is executed.

This fixes issue that when running MESS you are able to mount images even if you did not start driver directly, before this change we got unknown ini options warnings. (no whatsnew)
2010-07-21 13:28:42 +00:00
Couriersud
9f669d0121 lib/util now includes stdlib.h where needed 2010-01-17 20:15:47 +00:00
Aaron Giles
bd24fb23c1 Results of running the latest srcclean. 2009-12-28 09:04:00 +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
e692918b34 Added casts to ensure proper values are passed to the ctype.h functions.
[Juergen Buchmueller]
2009-06-25 08:04:39 +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
Couriersud
6ab989af82 Reverted change to options.c - not ready for release due to potential breakage of frontends. 2008-03-02 00:39:56 +00:00
Couriersud
7df031fb4f Rewrote some potentially compiler specific code:
* added ATTR_FORCE_INLINE to osdcomm.h
* added ATTR_NONNULL
* moved U64 S64 fram mamecore.h to osdcomm.h
* define SETJMP_GNUC_PROTECT() in osdcomm.h for use in ppc602, ppc603
2008-03-02 00:35:58 +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
422ccce762 (From Oliver Stoneberg)
This is an updated version of my earlier ATTR_PRINTF patch. It was 
reviewed by Atari Ace to use ATTR_PRINTF properly and fixes even more 
format errors. I also reviewed the whole source again and it is now 
used in all possible places.
2008-01-03 05:37:18 +00:00
Aaron Giles
507ca2d275 Changes for MAME 0.121u4. 2007-12-17 16:41:39 +00:00
Aaron Giles
7b77f12186 Initial checkin of MAME 0.121. 2007-12-17 15:19:59 +00:00