summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/diimage.c
Commit message (Collapse)AuthorAgeFilesLines
* debug/qt: Add a per-device window [O. Galibert] Olivier Galibert2014-12-221-1/+1
| | | | | There probably is interesting information to add, and it can look better. Anybody, feel free to enhance it :-)
* Cleanups and version bumpmame0155 Miodrag Milanovic2014-10-151-3/+3
|
* better fix. nw. Fabio Priuli2014-09-171-2/+3
|
* softlist: restored the support for loading games from compatible Fabio Priuli2014-09-171-10/+22
| | | | | | | | softlists (like gbcolor games in gameboy, and viceversa, msx1 carts in msx2, etc.) by using the syntax mess system -media list:gamename You can now for instance use again "mess gbcolor -cart gameboy:sml" to play "Super Mario Land" with the custom palettes of the Game Boy Color. [Fabio Priuli]
* Cleanup of image device interfaces (nw) Miodrag Milanovic2014-05-021-3/+0
|
* image.c: Added support for loading a default battery, instead of a fixed ↵ Fabio Priuli2014-05-021-1/+6
| | | | | | | | fill value, when no battery is found. This allows for loading factory formatted sram/nvram from softlist. [Fabio Priuli] (MESS) nes.c: Fixed Silva Saga, which relies on SRAM not being 0x00 filled from factory, with many thanks to naruko for investigating the problem. [Fabio Priuli]
* Moved eminline and related files into /src/osd since it's system related (nw) Miodrag Milanovic2014-04-161-12/+12
| | | | | | | | 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
* Cleanups and version bumpmame0153 Miodrag Milanovic2014-04-071-10/+10
|
* Factored ui_menu_control_device_image into ui/imgcntrl.c Nathan Woods2014-04-051-262/+1
|
* some dynamic_buffer/dynamic_array usage cleanups (nw) Oliver Stöneberg2014-03-291-2/+1
|
* converted some global_alloc_array() usage to dynamic_array/dynamic_buffer (nw) Oliver Stöneberg2014-03-281-3/+2
|
* replaced some malloc/free usage with global_alloc_array/global_free_array (nw) Oliver Stöneberg2014-03-281-2/+2
|
* fixed memory leaks in diimage.c (nw) Oliver Stöneberg2014-03-271-8/+8
|
* removed mame_* aliases and just use core_* functions (nw) Oliver Stöneberg2014-03-241-3/+3
|
* some mismatched malloc/free usage with osd_* functions (nw) Oliver Stöneberg2014-03-241-0/+3
|
* fixed nvram save location by setting proper name (nw) Miodrag Milanovic2014-03-131-1/+1
|
* Moved core template container classes up from emutempl.h to coretmpl.h: Aaron Giles2014-03-111-113/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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)
* added a few more missing \n in logging / cleanups (nw) Oliver Stöneberg2014-03-101-2/+2
|
* Fixed software list regression. (nw) Curt Coder2014-02-141-1/+1
|
* diimage: Added "read_only" feature to the software list to denote write ↵ Curt Coder2014-02-131-0/+6
| | | | | protected images. [Curt Coder] (MESS) c64: Fixed Bounty Bob Strikes Back loading. (nw)
* Moved src/emu/ui.? ==> src/emu/ui/ui.?, changed to follow MAME OOP ↵ Nathan Woods2014-01-291-3/+3
| | | | conventions; we now have a ui_manager class
* Broke apart src/emu/ui/filemngr.?, moved src/emu/uiswlist.? ==> Nathan Woods2014-01-201-2/+2
| | | src/emu/ui/swlist.?
* Split uiimage.? ==> ui/filemngr.? and ui/tapectrl.? Nathan Woods2014-01-191-1/+1
|
* Cleanups and version bumpmame0152 Miodrag Milanovic2013-12-241-1/+1
|
* diimage: Added load_software_region() function that loads a software list ↵ Curt Coder2013-12-201-0/+19
| | | | region into a shared_ptr. [Curt Coder]
* Added license tags to a few more files. Also converted many of OG's Aaron Giles2013-10-161-31/+2
| | | | | BSD licenses to tags since when he copied & pasted them he forgot to remove one instance of my name, which I caught while searching. ;-)
* Cleanups and version bumpmame0148u1 Miodrag Milanovic2013-02-111-2/+2
|
* diimage.c: error out if xml is incomplete instead of crashing. no whatsnew. Fabio Priuli2013-01-241-0/+5
|
* MIDI core updates: [R. Belmont] R. Belmont2013-01-131-0/+2
| | | | | | | | | | - Add MIDI in and out ports as image device types - Add OSD calls to check for and read MIDI input - Add MIDI in image device which reads input and converts it to a serial bitstream nw section: Note that the MIDI In device uses the new image device override to prevent the core from attempting to fopen() the "file" name and instead it handles open/close itself in call_load/call_unload. This allows greater flexibilty than the hack used for sockets/ptys/named pipes where the OSD file layer has to know about them.
* diimage: allow image devices to skip core fopen() of the image's filename ↵ R. Belmont2013-01-121-34/+37
| | | | and handle themselves in call_load() [R. Belmont]
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-311/+311
|
* verify softlist items that are not CHDs or roms and display warnings/errors ↵ Miodrag Milanovic2012-10-111-0/+61
| | | | (no whatsnew)
* added missing \n to some more fatalerror() calls (no whatsnew) Oliver Stöneberg2012-09-081-1/+1
|
* DEVINFO_* to CPU_INFO_*, and some cleanups (no whatsnew) Miodrag Milanovic2012-09-031-1/+1
|
* removed unnecessary strlen() usage (no whatsnew) Oliver Stöneberg2012-07-271-1/+1
|
* Added device image type for individual ROM images (as used in some Amstrad ↵ mahlemiut2012-05-071-0/+2
| | | | CPC applications) (no whatsnew)
* Changed device->subregion to device->memregion. Moved Aaron Giles2012-04-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Display softlist in menu only for devices having interface set (no whatsnew) Miodrag Milanovic2012-03-301-1/+1
|
* Sync with MESS (no whatsnew) Miodrag Milanovic2012-03-061-6/+8
|
* Clean-ups and version bumpmame0145u2 Angelo Salese2012-02-261-1/+1
|
* Give more proper name and disabled loading of soflist items in ↵ Miodrag Milanovic2012-02-211-3/+3
| | | | open_image_file call (no whatsnew)
* Added helpers for loading file for slot determination (no whatsnew) Miodrag Milanovic2012-02-211-3/+25
|
* Remove redundant hashing code, use hashing.h instead. Aaron Giles2012-02-161-1/+2
| | | | | | 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. ;)
* Some cleanup of some observed #include redundancy from source files which ↵ Scott Stone2012-02-061-1/+0
| | | | use emu.h (nw)
* Clean-ups and version bump Angelo Salese2012-02-051-1/+1
|
* workaround for softlist images ending up with the wrong basename. this fixes ↵ Fabio Priuli2012-02-051-1/+9
| | | | | problems with nvram and snap handling in softlist. no whatsnew. I'm not sure if the change from "m_image_name = softlist:gamename" to "m_image_name = softlist:gamename:partname" was done on purpose, but given how close we are to the release, I think it's safer to fix it here than to modify the softlist code.
* Fix regression on softload item load using menus (no whatsnew) Miodrag Milanovic2012-01-301-5/+17
|
* Sync with MESS (no whatsnew) Miodrag Milanovic2012-01-251-3/+11
|
* Move devices into a proper hierarchy and handle naming Aaron Giles2012-01-241-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and paths consistently for devices, I/O ports, memory regions, memory banks, and memory shares. [Aaron Giles] NOTE: there are likely regressions lurking here, mostly due to devices not being properly found. I have temporarily added more logging to -verbose to help understand what's going on. Please let me know ASAP if anything that is being actively worked on got broken. As before, the driver device is the root device and all other devices are owned by it. Previously all devices were kept in a single master list, and the hierarchy was purely logical. With this change, each device owns its own list of subdevices, and the hierarchy is explicitly manifest. This means when a device is removed, all of its subdevices are automatically removed as well. A side effect of this is that walking the device list is no longer simple. To address this, a new set of iterator classes is provided, which walks the device tree in a depth first manner. There is a general device_iterator class for walking all devices, plus templates for a device_type_iterator and a device_interface_iterator which are used to build iterators for identifying only devices of a given type or with a given interface. Typedefs for commonly-used cases (e.g., screen_device_iterator, memory_interface_iterator) are provided. Iterators can also provide counts, and can perform indexed lookups. All device name lookups are now done relative to another device. The maching_config and running_machine classes now have a root_device() method to get the root of the hierarchy. The existing machine->device("name") is now equivalent to machine->root_device().subdevice("name"). A proper and normalized device path structure is now supported. Device names that start with a colon are treated as absolute paths from the root device. Device names can also use a caret (^) to refer to the owning device. Querying the device's tag() returns the device's full path from the root. A new method basetag() returns just the final tag. The new pathing system is built on top of the device_t::subtag() method, so anyone using that will automatically support the new pathing rules. Each device has its own internal map to cache successful lookups so that subsequent lookups should be very fast. Updated every place I could find that referenced devices, memory regions, I/O ports, memory banks and memory shares to leverage subtag/subdevice (or siblingtag/siblingdevice which are built on top). Removed the device_list class, as it doesn't apply any more. Moved some of its methods into running_machine instead. Simplified the device callback system since the new pathing can describe all of the special-case devices that were previously handled manually. Changed the core output function callbacks to be delegates. Completely rewrote the validity checking mechanism. The validity checker is now a proper C++ class, and temporarily takes over the error and warning outputs. All errors and warnings are collected during a session, and then output in a consistent manner, with an explicit driver and source file listed for each one, as well as additional device and/or I/O port contexts where appropriate. Validity checkers should no longer explicitly output this information, just the error, assuming that the context is provided. Rewrote the software_list_device as a modern device, getting rid of the software_list_config abstraction and simplifying things. Changed the way FLAC compiles so that it works like other external libraries, and also compiles successfully for MSVC builds.