Commit Graph

27 Commits

Author SHA1 Message Date
Oliver Stöneberg
151070e970 replaced off_st usage in src/lib/formats with UINT32 to reduce libemu dependencies (nw) 2015-03-20 19:08:03 +01:00
Oliver Stöneberg
0bdcbac42e cleaned up emu.h usage in src/lib/formats (nw) 2015-03-20 14:09:50 +01:00
Miodrag Milanovic
fec65e0b57 Cleanups and version bump 2014-04-07 06:04:18 +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
Curt Coder
d71e453b40 g64_dsk: Added bit cell size detection on save. (nw) 2014-02-13 22:48:20 +00:00
Curt Coder
8dd7482652 (MESS) c64: Floppy WIP. (nw) 2014-02-12 22:05:12 +00:00
Curt Coder
1f68cb9336 Cleanup. (nw) 2014-02-03 23:00:04 +00:00
Curt Coder
b10cef380b (MESS) Refactored the Commodore 1541/1551/1571/2031 disk drives to use the modern floppy system. [Curt Coder] 2014-02-03 15:59:54 +00:00
Curt Coder
c2158d2c10 (MESS) g64_dsk: Skip unformatted tracks. (nw) 2014-01-22 20:57:56 +00:00
Curt Coder
92f475be80 Fixed build. (nw) 2014-01-21 22:28:05 +00:00
Curt Coder
e04ec2a3dd (MESS) g64_dsk: Fixed modern image loading. (nw) 2014-01-21 21:32:41 +00:00
Curt Coder
846c70bee9 License tags. (nw) 2013-10-16 13:38:21 +00:00
Aaron Giles
71fbb5edc2 Added license tags to a few more files. Also converted many of OG's
BSD licenses to tags since when he copied & pasted them he forgot to
remove one instance of my name, which I caught while searching. ;-)
2013-10-16 09:38:09 +00:00
Miodrag Milanovic
96aa5e1c08 Cleanups and version bump 2013-09-17 06:47:03 +00:00
Curt Coder
a2381079c4 (MESS) c128: Added support for double-sided Commodore GCR images to be used with the 1571 disk drive. Images can be created with e.g. "copy /b side0.g64+side1.g64 disk.g71" [Curt Coder] 2013-09-16 19:00:45 +00:00
smf-
2e9622ecdb Fixes for building MAME with Visual Studio 2013 preview [smf] 2013-07-05 00:45:14 +00:00
Miodrag Milanovic
a440a8e020 Cleanups and version bump 2013-02-11 07:44:56 +00:00
Curt Coder
f02a94e4ac Fixed MSVC compile. (nw) 2013-01-17 20:08:59 +00:00
Curt Coder
ffe3325258 (MESS) d64/g64 floppy modernization WIP. (nw) 2013-01-17 15:32:52 +00:00
Curt Coder
cf41f05d4b (MESS) flopimg: Added support for Commodore GCR encoding. [Curt Coder]
(MESS) d64/g64 floppy modernization WIP. (nw)
2013-01-14 16:27:52 +00:00
Miodrag Milanovic
0e19f641d3 Cleanups and version bump 2013-01-11 07:32:46 +00:00
Miodrag Milanovic
f54800c1f3 Clean-ups and version bump 2012-08-20 06:39:53 +00:00
Curt Coder
b3cb644955 Sync with MESS. (nw) 2012-08-12 20:21:35 +00:00
Miodrag Milanovic
70c76783e2 floppy_image to floppy_image_legacy rename (no whatsnew) 2011-07-20 09:35:15 +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