Commit Graph

224 Commits

Author SHA1 Message Date
Wilbert Pol
a1e92d76f6 clifront.c: Parse ini files before looking for software. (nw)
This way the hashpath setting will actually be used to search
for software in software lists. This only occured when starting
the emulator with the auto-search/mounting-software-feature:
mame nes sonic
this format worked ok:
mame nes -floppy sonic
2015-06-05 22:26:04 +02:00
Miodrag Milanovic
64e16ca8cf Cleanups and version bump 2015-05-27 09:03:32 +02:00
etabeta78
82bc54fb61 check device roms only once as well when using -romident. this does not help
as much as the softlist change, but there was no reason to keep the old
unoptimal behavior. nw.
2015-05-13 12:24:52 +02:00
etabeta78
e978f44775 clifront.c: Slightly optimized -romident so that each software list is
parsed only once instead of as many times as the number of drivers
it is attached to. Also, removed the implication that files with
(size != power of 2) are to be skipped, since we now want to identify
also tapes and floppies and not only ROM binaries. [Fabio Priuli]
2015-05-13 08:17:40 +02:00
Miodrag Milanovic
54f8b3ae5d moved all to std::string (nw) 2015-04-22 11:30:45 +02:00
Miodrag Milanovic
71c4d9f304 removed bool conversion and implicit empty check (nw) 2015-04-19 12:08:52 +02:00
Olivier Galibert
278cf84e55 Replace dynamic_array with std::vector [O. Galibert] 2015-04-14 19:58:17 +02:00
Miodrag Milanovic
2edee0b811 updated astring constructors to have just one string param, to be more like std::string (nw) 2015-04-13 12:25:21 +02:00
Miodrag Milanovic
87f705b984 string -> str rename due to future conflicts (nw) 2015-04-12 16:54:10 +02:00
Miodrag Milanovic
7faba31b1b There is no implicit conversion to char* in std::string (nw) 2015-04-12 08:05:43 +02:00
Miodrag Milanovic
6b36c7ab22 cstr() - > c_str() as preparation for move to std::string (nw) 2015-04-11 15:26:58 +02:00
Miodrag Milanovic
26e7a17b63 Cleanups and version bump 2015-01-28 09:20:10 +01:00
couriersud
18d5da6b0b Changed osd_font to struct osd_font and removed unnecessary osdepend.h
includes.
2015-01-17 15:59:43 +01:00
couriersud
11af4265a0 OSD Updates:
- OSD can now use OPTION_COMMAND; added execute_command handler to
osd_interface.
- moved list_network_devices and list_midi_devices to OSD
2015-01-14 01:05:38 +01:00
couriersud
e216457fcd Untangled options inheritance. Previously code locked in osd_options
locking any potential future OSD to these.
Options inheritance now is

core_options
emu_options
cli_options
osd_options
[sdl|win]_osd_options

This required a number of minor changes to other code as well. 
Tested on linux-sdl, windows-sdl, windows-mainline, osx-sdl
2015-01-13 20:23:00 +01:00
couriersud
a532231701 Converted back osd_interface into a pure interface.
The previous version just exhibited any member of osd_interface to the
core. This one limits core access to osd to those functions originally
specified.
There is room for improvement going forward here in the design. Left
FIXMEs where appropriate. (nw)
2015-01-12 02:19:14 +01:00
couriersud
d7b9f653e3 Moved osd midi stuff to osd/modules/midi. Needed to touch a couple of
other files so that mame compiles and links. Tested SDL build
(linux/windows).
2015-01-09 23:21:19 +01:00
Miodrag Milanovic
63469469ba Added -listnetwork option to list available network adapters 2014-10-23 09:26:29 +02:00
Fabio Priuli
2943c5fc55 softlist: fixed inconsistent -listsoftware output. [phulshof] 2014-09-16 04:57:19 +00:00
Oliver Stöneberg
80428c91fc do not start tagmap lookup counting until everything is initialized / tagmap lookups are now properly shown for each execution when running multiple sets from built-in UI instead of only when exiting MAME completely (nw) 2014-09-09 20:29:57 +00:00
Oliver Stöneberg
82a99c4452 moved tagged_list:: out of tagged_list to make it catch-able / handle add_exception / updated exception handling unidasm to match the main one and return a proper exitcode in case of an error (nw) 2014-09-08 18:46:40 +00:00
Miodrag Milanovic
5d7e1fcc62 Cleanups and version bump 2014-07-22 06:14:55 +00:00
Oliver Stöneberg
d4b13a88cc improved exception reporting in cli_frontend (nw) 2014-07-02 18:26:13 +00:00
Wilbert Pol
0a6b226deb Different version of OSX segfault fix (nw) 2014-06-23 20:02:16 +00:00
Wilbert Pol
65cd55ff6b Prevent segfault on OSX (nw) 2014-06-23 19:27:09 +00:00
Robbbert
7c59146b4e romident: print a summary at the end, instead of garbage. 2014-06-10 11:59:39 +00:00
Miodrag Milanovic
991212c069 -Created machine_manager as singleton class that contains (for now) one running machine [Miodrag Milanovic]
-Updated LUA engine to run in machine_manager instead of being initialized per machine
-Added "-console" option so emulator can be started with LUA enabled console
-Update LUA to version 5.2.3 
-Enabled SQLite3 to be compiled and added LUA module for it
2014-06-06 10:11:31 +00:00
Miodrag Milanovic
d740f275ef Placing reverting options on proper place (nw) 2014-06-03 13:03:14 +00:00
mahlemiut
8a06918131 revert r30583, it breaks -ramsize option (no whatsnew) 2014-06-03 07:12:54 +00:00
Miodrag Milanovic
42b4acfec3 slots are now taken in consideration even if defined in ini only (nw) 2014-05-21 12:05:32 +00:00
Miodrag Milanovic
a3bc3f5ad9 Placed parsing properly so warnings are displayed, was bug for a longer period (nw) 2014-05-09 09:04:29 +00:00
Miodrag Milanovic
b23ffd5176 fix Error in command line not being visible due to buffering, also cleaned some other (nw) 2014-05-09 07:42:15 +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
Oliver Stöneberg
d63e60a4c8 small core_strwildcmp() clarification (nw) 2014-04-07 09:26:05 +00:00
Miodrag Milanovic
dd1e28e513 Fix listsamples and one other potential problematic place, and fixed better devctrl (nw) 2014-04-03 08:56:14 +00:00
Oliver Stöneberg
2e5ea37f65 removed mame_* aliases and just use core_* functions (nw) 2014-03-24 22:05:08 +00:00
Scott Stone
5f18171d6d Adjustment to -listdevices output to allow for more depth and better separation between device name and description in extreme cases. (nw) 2014-03-20 21:50:53 +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
Oliver Stöneberg
aa785afb99 first round of printf fixes (nw) 2014-02-25 11:55:35 +00:00
Oliver Stöneberg
c6f92ae843 fixed non-DEBUG build (nw) 2014-02-21 10:54:07 +00:00
Oliver Stöneberg
23a39b0b0d added DEBUG-only tagmap lookup counter (nw) 2014-02-21 10:37:27 +00:00
Miodrag Milanovic
299a6559b0 Resolved bug MT05443 (nw) 2014-02-06 07:47:34 +00:00
smf-
cc9b510f9c Slot options can now be configured inline without creating an array. Legacy support for old configuration uses MCFG_FRAGMENT_ADD, which required changing so the current device could be updated by the fragment. [smf] 2013-12-16 19:31:52 +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
Miodrag Milanovic
96aa5e1c08 Cleanups and version bump 2013-09-17 06:47:03 +00:00
Aaron Giles
2b8aca5461 Improve -listdevices display, sorting by tag and showing device
hierarchies.
2013-08-08 03:46:59 +00:00
Michaël Banaan Ananas
55ac5a4ca5 let's increase approx matches for gamenames from 10 to 16 2013-05-21 19:01:48 +00:00
Fabio Priuli
99a292585f clifront.c: allow -romident to properly handle zipfiles inside a directory [Fabio Priuli] 2013-05-02 14:31:58 +00:00
Miodrag Milanovic
cac962c4b5 print proper message on -listslots in case there are no slot options available, like in some dummy slots (nw) 2013-03-22 13:03:43 +00:00
Oliver Stöneberg
e355794c70 clear 7z file cache on exit 2013-02-21 20:12:27 +00:00