summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-1609/+0
|
* Relaxed emu.h a bit, should make compile a bit faster (nw) Miodrag Milanovic2015-11-051-0/+1
|
* removed not needed conversions (nw) Miodrag Milanovic2015-10-271-2/+2
|
* License self-service. Aaron Giles2015-05-251-1/+1
| | | | | | License self-service. Mostly adding attribution where I made significant contributions. In a few cases files I previously missed were default-attributed to Nicola.
* Self-service (nw) Paul Priest2015-05-241-1/+1
| | | | Drivers/core where made (still) recognisable contributions as non-primary author. Any objections, feel free to revert.
* Added some for Nathan and some more for Nicola (nw) Miodrag Milanovic2015-05-111-6/+2
|
* Added dummy license headers for EMU section (nw) Miodrag Milanovic2015-05-071-0/+2
|
* small cleanup (nw) Miodrag Milanovic2015-04-221-9/+9
|
* moved all to std::string (nw) Miodrag Milanovic2015-04-221-75/+75
|
* romload: Replaced include; hfdc: Changed floppy device name Michael Zapf2015-04-201-1/+1
|
* some astring to std::string conversion (nw) Miodrag Milanovic2015-04-181-6/+6
|
* Replace dynamic_array with std::vector [O. Galibert] Olivier Galibert2015-04-141-1/+1
|
* updated astring constructors to have just one string param, to be more like ↵ Miodrag Milanovic2015-04-131-2/+2
| | | | std::string (nw)
* There is no implicit conversion to char* in std::string (nw) Miodrag Milanovic2015-04-121-18/+18
|
* cstr() - > c_str() as preparation for move to std::string (nw) Miodrag Milanovic2015-04-111-39/+39
|
* core: Add per-game parameters [O. Galibert] Olivier Galibert2015-01-251-0/+62
| | | | | | | | | | | | | | | | Per-game parameters are (tag, value) pairs that follow the same tag structure than everything else. They're added within a ROM section with ROM_PARAMETER(tag, value). You look them up through the device method parameter(tag) which returns the string, or "" if not present. A *lot* of drivers can benefit from that stuff. It should kill most game-name keyed tables, and the alternative approach of bazillon-of-driver-inits. Possible evolutions, if someone wants to do it: - output them in -listxml - push the softlist parameters present in the xml through that - maybe allow to change/set them through the command line
* Cleanups and version bumpmame0156 Miodrag Milanovic2014-11-261-1/+1
|
* Touching all the candy again: [Alex Jackson] Alex W. Jackson2014-11-171-3/+4
| | | | | | | | | | | | | | | | Fixed an annoying inconsistency between memory_share and memory_region: the width() method of the former returned the width in bits (8, 16, 32 or 64) while the width() method of the latter returned the width in bytes (1, 2, 4 or 8). Now both classes have a bitwidth() method and a bytewidth() method. Updated all callers to use whichever one was more appropriate. Removed the implicit-cast-to-any-integer-pointer ability of memory_regions, which was rather unsafe (if you weren't careful with your * operators and casts it was easy to accidentally get a pointer to the memory_region object itself instead of to the data, with no warning from the compiler... or at least I kept doing it) Updated all devices and drivers that were accessing regions that way to use a region_ptr_finder when possible, and otherwise to call base() explicitly.
* fixed memory leak when loading CHD from software list (nw) Oliver Stöneberg2014-09-101-1/+1
|
* Moved eminline and related files into /src/osd since it's system related (nw) Miodrag Milanovic2014-04-161-3/+3
| | | | | | | | 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
* removed mame_* aliases and just use core_* functions (nw) Oliver Stöneberg2014-03-241-2/+2
|
* Moved core template container classes up from emutempl.h to coretmpl.h: Aaron Giles2014-03-111-47/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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)
* Another round of auto_alloc_array conversions. Aaron Giles2014-02-201-3/+1
| | | | | Some minor enhancements to dynamic_array, including clearing to specific values and expanding and clearing newly allocated values.
* Moved src/emu/ui.? ==> src/emu/ui/ui.?, changed to follow MAME OOP ↵ Nathan Woods2014-01-291-2/+3
| | | | conventions; we now have a ui_manager class
* "FATALERROR: ERROR: x" Michaël Banaan Ananas2014-01-011-1/+1
|
* Added a new macro MCFG_DEVICE_CARD_DEFAULT_BIOS, which can be used in the ↵ Curt Coder2013-11-131-2/+5
| | | | machine config to set the default BIOS for a slot card device. [Curt Coder]
* Invalid BIOS is a fatal error. (nw) Curt Coder2013-11-021-1/+1
|
* [MT03450] show detailed NOT FOUND messages for missing CHDs [Oliver Stöneberg] Oliver Stöneberg2013-09-241-17/+19
|
* removed DISK_ISOPTIONAL macro in favor of identical ROM_ISOPTIONAL (nw) Oliver Stöneberg2013-09-241-1/+1
|
* Cleanups and version bumpmame0148u2 Miodrag Milanovic2013-03-191-4/+4
|
* lists have no bios flag, so this check is redundant. nw. Fabio Priuli2013-03-151-5/+4
|
* romload: attempt to improve loaded rom percentage display. nw. Fabio Priuli2013-03-141-12/+12
| | | | | | | namely, with this change the emulator displays first a "Loading Game N%" while loading MAME game or MESS system roms, then it switches to "Loading Software %N" while loading from softlist (this also applies to Megatech, ST-V and NeoGeo lists in MAME) I'm not completely happy with passing a "from_list" boolean to modify the behavior, but I have found no better solution. If you find any, please be my guest and replace this solution with yours.
* romload: reset rom size counter when starting to load software. nw. Fabio Priuli2013-03-141-0/+4
|
* (MESS) romload: fixed loaded rom percentage going beyond 100% with softlist ↵ Fabio Priuli2013-03-141-5/+12
| | | | | | | | | | | | entries. nw. previously, loading from softlist was using the bios romsize as totalsize to load, explaining both the erratic percentage values in systems like AES and the totalsize = 0 error in NES and other bios-less systems, which was requiring a special workaround. handling is still not perfect (e.g I think that first the bios is loaded and counter goes to 100%, then the cart is loaded and the count restarts from 0%, so it would be better to have a separate message for the softlist loading, but I need to study in depth the code before such a change), but it's definitely better than having AES carts loading up to 12575% or NES skipping completely the soft percentage due to totalsize =0...
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-23/+22
|
* romload: Tell in which zips a missing rom was searched for [O. Galibert] Olivier Galibert2012-10-271-8/+32
|
* Clean-ups and version bumpmame0147 Miodrag Milanovic2012-09-171-2/+2
| | | note: hoarded dump removed too from coco_cart.xml, this will not be tolerated
* First pass at modernizing struct definitions. Aaron Giles2012-09-151-20/+19
|
* Made core able to use bios selection per slot device [Miodrag Milanovic] Miodrag Milanovic2012-09-051-17/+27
| | | | | | Sample of usage : mess kc85_4 -exp d004gide,bios=v31 Will need to cleanup handling of sub options to make it more robust and able to validate
* Clean-ups and version bumpmame0146u5 Miodrag Milanovic2012-08-201-1/+1
|
* Fix no to display missing roms in case of not supported software (no whatsnew) Miodrag Milanovic2012-08-131-2/+0
|
* Display correct software load messages depending of supported attribute ↵ Miodrag Milanovic2012-08-121-0/+14
| | | | value (no whatsnew)
* Made UI for BIOS selection where applicable, and moved info about current Miodrag Milanovic2012-04-301-29/+8
| | | system and default bios to device_t class (no whatsnew)
* Changed device->subregion to device->memregion. Moved Aaron Giles2012-04-201-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | memory_region management into the memory manager instead of directly in the machine. Hid the global region method; now all regions must be looked up relative to a device. If you're a member function, you can just use memregion("tag") directly. If you're a global function or a device referencing global regions, use machine().root_device().memregion("tag") to look up regions relative to the root. S&R to convert all references: machine([()]*)\.region machine\1\.root_device\(\).subregion Then remove redundant machine().root_device() within src/mame: ([ \t])machine\(\)\.root_device\(\)\. \1 And use state->memregion() if we have a state variable present: (state *= *[^;]+driver_data[^}]+)([^ \t]*)machine[()]*\.root_device\(\)\. \1state-> Finally some cleanup: screen.state-> state-> device->state-> state-> space->state-> state-> And a few hand-tweaks.
* Move driver list/enumerator to new file drivenum.c/.h. Aaron Giles2012-04-061-0/+1
| | | | Move game_driver definition and constants to new header gamedrv.h.
* Be more rigorous about parsing invalid hashes. Report them Aaron Giles2012-02-211-9/+0
| | | | | | only through validity checking. If detected normally, do a best-effort attempt so that things like CRC(1) SHA1(1) can be used to force reporting of proper checksums.
* Removed rom_source abstraction, which was just mapping to devices Aaron Giles2012-02-201-94/+53
| | | | | anyways. Updated everyone involved to just iterate over devices directly.
* Clean-ups and version bumpmame0145u1 Angelo Salese2012-02-191-11/+11
|
* Remove redundant hashing code, use hashing.h instead. Aaron Giles2012-02-161-2/+3
| | | | | | Remove overabstraction in hash.h; it's ok to hard code the two types of hashes we have. Even adding another one would not be very difficult. ;)
* Major CHD/chdman update. The CHD version number has been increased Aaron Giles2012-02-161-89/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from 4 to 5. This means any diff CHDs will no longer work. If you absolutely need to keep the data for any existing ones you have, find both the diff CHD and the original CHD for the game in question and upgrade using these commands: rename diff\game.dif diff\game-old.dif chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none Specifics regarding this change: Defined a new CHD version 5. New features/behaviors of this version: - support for up to 4 codecs; each block can use 1 of the 4 - new LZMA codec, which tends to do better than zlib overall - new FLAC codec, primarily used for CDs (but can be applied anywhere) - upgraded AVHuff codec now uses FLAC for encoding audio - new Huffman codec, used to catch more nearly-uncompressable blocks - compressed CHDs now use a compressed map for significant savings - CHDs now are aware of a "unit" size; each hunk holds 1 or more units (in general units map to sectors for hard disks/CDs) - diff'ing against a parent now diffs at the unit level, greatly improving compression Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported, and version 3/4 CHDs are only supported for reading. Creating a new CHD now leaves the file open. Added methods to read and write at the unit and byte level, removing the need to handle this manually. Added metadata access methods that pass astrings and dynamic_buffers to simplify the interfaces. A companion class chd_compressor now implements full multithreaded compression, analyzing and compressing multiple hunks independently in parallel. Split the codec implementations out into a separate file chdcodec.* Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/ write capabilities of the chd_file class. cdrom.c (and chdman) now also pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that the same SHA1 hashes are produced regardless of the hunk size. Rewrote chdman.exe entirely, switching from positional parameters to proper options. Use "chdman help" to get a list of commands, and "chdman help <command>" to get help for any particular command. Many redundant commands were removed now that additional flexibility is available. Some basic mappings: Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs> New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs> Old: chdman -createuncomphd <in.raw> <out.chd> .... New: chdman createhd -i <in.raw> -o <out.chd> -c none .... Old: chdman -verifyfix <in.chd> New: chdman verify -i <in.chd> -f Old: chdman -merge <parent.chd> <diff.chd> <out.chd> New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd> Old: chdman -diff <parent.chd> <compare.chd> <diff.chd> New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd> Old: chdman -update <in.chd> <out.chd> New: chdman copy -i <in.chd> -o <out.chd> Added new core file coretmpl.h to hold core template classes. For now just one class, dynamic_array<> is defined, which acts like an array of a given object but which can be appended to and/or resized. Also defines dynamic_buffer as dynamic_array<UINT8> for holding an arbitrary buffer of bytes. Expect to see these used a lot. Added new core helper hashing.c/.h which defines classes for each of the common hashing methods and creator classes to wrap the computation of these hashes. A future work item is to reimplement the core emulator hashing code using these. Split bit buffer helpers out into C++ classes and into their own public header in bitstream.h. Updated huffman.c/.h to C++, and changed the interface to make it more flexible to use in nonstandard ways. Also added huffman compression of the static tree for slightly better compression rates. Created flac.c/.h as simplified C++ wrappers around the FLAC interface. A future work item is to convert the samples sound device to a modern device and leverage this for reading FLAC files. Renamed avcomp.* to avhuff.*, updated to C++, and added support for FLAC as the audio encoding mechanism. The old huffman audio is still supported for decode only. Added a variant of core_fload that loads to a dynamic_buffer. Tweaked winwork.c a bit to not limit the maximum number of processors unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ option. Further adjustments here are likely going to be necessary. Fixed bug in aviio.c which caused errors when reading some AVI files.