summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/imagedev/cassette.c
Commit message (Collapse)AuthorAgeFilesLines
* Added some for Nathan and some more for Nicola (nw) Miodrag Milanovic2015-05-111-2/+2
|
* Added dummy license headers for EMU section (nw) Miodrag Milanovic2015-05-071-0/+2
|
* moved all to std::string (nw) Miodrag Milanovic2015-04-221-3/+3
|
* cstr() - > c_str() as preparation for move to std::string (nw) Miodrag Milanovic2015-04-111-1/+1
|
* Cleanups and version bump Miodrag Milanovic2014-07-221-1/+1
|
* cassette config moved inline (nw) Miodrag Milanovic2014-05-021-27/+7
|
* Cleanup of image device interfaces (nw) Miodrag Milanovic2014-05-021-3/+1
|
* fixed uninitialized member usage in cassette_image_device (nw) Oliver Stöneberg2014-02-261-2/+3
|
* Moved src/emu/ui.? ==> src/emu/ui/ui.?, changed to follow MAME OOP ↵ Nathan Woods2014-01-291-4/+4
| | | | conventions; we now have a ui_manager class
* changed rest of devices (except cpu cores) to have shortname and sourcefile (nw) Miodrag Milanovic2013-06-211-1/+1
|
* (MESS) ep64: Modernized the Enterprise 64/128 driver. [Curt Coder] Curt Coder2013-06-061-1/+1
|
* fixed uninitialized variable in src/emu/imagedev/cassette.c (nw) Oliver Stöneberg2013-02-161-0/+1
|
* set proper cassette image loading error / removed unused ↵ Oliver Stöneberg2013-02-121-0/+20
| | | | CASSETTE_ERROR_INVALIDARG (nw)
* output of new srcclean changes that are relatively small [smf] smf-2013-01-111-2/+0
|
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-11/+11
|
* Clean-ups and version bumpmame0145u7 Angelo Salese2012-04-221-1/+1
|
* Sync with MESS (no whatsnew) Miodrag Milanovic2012-04-161-4/+33
|
* Making sure tape stops at end when playing (Apple1 for example), patch by ↵ Miodrag Milanovic2012-02-151-0/+13
| | | | Robbbert (no whatsnew)
* import from MESS (no whatsnew) Miodrag Milanovic2012-02-141-1/+1
|
* Move devices into a proper hierarchy and handle naming Aaron Giles2012-01-241-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix for cassette (no whatsnew) Miodrag Milanovic2012-01-171-1/+2
|
* Fix for cassette extension extraction (no whatsnew) Miodrag Milanovic2012-01-111-1/+1
|
* Sync with MESS all credited there (no whatsnew) Miodrag Milanovic2011-12-121-2/+2
|
* Fix softload of cassettes (no whatsnew) Miodrag Milanovic2011-12-051-1/+11
|
* Fixed cassette create (no whatsnew) Miodrag Milanovic2011-08-141-0/+5
|
* Cleanups and version bumpmame0142u6 Angelo Salese2011-06-191-2/+2
|
* Cassette device modernized (no whatsnew) Miodrag Milanovic2011-06-151-209/+121
|
* Porting from MESS, nw Angelo Salese2011-05-231-1/+0
|
* Moved format handling and all formats to separate library [Miodrag Milanovic] Miodrag Milanovic2011-05-061-2/+1
|
* Renamed one image interface call till I am aware what is what (no whatsnew) Miodrag Milanovic2011-05-041-1/+1
|
* Collapsed device_config and device_t into one class. Updated all Aaron Giles2011-04-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | existing modern devices and the legacy wrappers to work in this environment. This in general greatly simplifies writing a modern device. [Aaron Giles] General notes: * some more cleanup probably needs to happen behind this change, but I needed to get it in before the next device modernization or import from MESS :) * new template function device_creator which automatically defines the static function that creates the device; use this instead of creating a static_alloc_device_config function * added device_stop() method which is called at around the time the previous device_t's destructor was called; if you auto_free anything, do it here because the machine is gone when the destructor is called * changed the static_set_* calls to pass a device_t & instead of a device_config * * for many devices, the static config structure member names over- lapped the device's names for devcb_* functions; in these cases the members in the interface were renamed to have a _cb suffix * changed the driver_enumerator to only cache 100 machine_configs because caching them all took a ton of memory; fortunately this implementation detail is completely hidden behind the driver_enumerator interface * got rid of the macros for creating derived classes; doing it manually is now clean enough that it isn't worth hiding the details in a macro
* cleanups, this time for good Angelo Salese2011-04-171-1/+1
|
* cassette.c/flopdrv.c: added support for a display info callback function ↵ Miodrag Milanovic2011-04-081-1/+14
| | | | [Miodrag Milanovic]
* Fixed compiling tools in MAME and MESS side (no whatsnew) Miodrag Milanovic2011-03-311-2/+2
|
* BIG update. Aaron Giles2011-03-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant machine items from address_space and device_t. Neither machine nor m_machine are directly accessible anymore. Instead a new getter machine() is available which returns a machine reference. So: space->machine->xxx ==> space->machine().xxx device->machine->yyy ==> device->machine().yyy Globally changed all running_machine pointers to running_machine references. Any function/method that takes a running_machine takes it as a required parameter (1 or 2 exceptions). Being consistent here gets rid of a lot of odd &machine or *machine, but it does mean a very large bulk change across the project. Structs which have a running_machine * now have that variable renamed to m_machine, and now have a shiny new machine() method that works like the space and device methods above. Since most of these are things that should eventually be devices anyway, consider this a step in that direction. 98% of the update was done with regex searches. The changes are architected such that the compiler will catch the remaining errors: // find things that use an embedded machine directly and replace // with a machine() getter call S: ->machine-> R: ->machine\(\)\. // do the same if via a reference S: \.machine-> R: \.machine\(\)\. // convert function parameters to running_machine & S: running_machine \*machine([^;]) R: running_machine \&machine\1 // replace machine-> with machine. S: machine-> R: machine\. // replace &machine() with machine() S: \&([()->a-z0-9_]+machine\(\)) R: \1 // sanity check: look for this used as a cast (running_machine &) // and change to this: *(running_machine *)
* Fix build break from last checkin. Aaron Giles2011-02-061-3/+3
| | | | | | | | | | | | | | | | | Also replace timer_get_time() with machine->time() 1. Main conversion timer_get_time( *)\( *([^)]+) *\) \2->time\1() 2. Cleanup #1 &machine->time machine.time 3. Cleanup #2 &m_machine->time m_machine.time
* Converted attotime to a class, with proper operators. Removed old Aaron Giles2011-02-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | global functions which are now superceded by the operators and methods on the class. [Aaron Giles] Required mappings are: attotime_make(a,b) => attotime(a,b) attotime_to_double(t) => t.as_double() double_to_attotime(d) => attotime::from_double(d) attotime_to_attoseconds(t) => t.as_attoseconds() attotime_to_ticks(t,f) => t.as_ticks(f) ticks_to_attotime(t,f) => attotime::from_ticks(t,f) attotime_add(a,b) => a + b attotime_add_attoseconds(a,b) => a + attotime(0, b) attotime_sub(a,b) => a - b attotime_sub_attoseconds(a,b) => a - attotime(0, b) attotime_compare(a,b) == 0 => a == b attotime_compare(a,b) != 0 => a != b attotime_compare(a,b) < 0 => a < b attotime_compare(a,b) <= 0 => a <= b attotime_compare(a,b) > 0 => a > b attotime_compare(a,b) >= 0 => a >= b attotime_mul(a,f) => a * f attotime_div(a,f) => a / f attotime_min(a,b) => min(a,b) attotime_max(a,b) => max(a,b) attotime_is_never(t) => t.is_never() attotime_string(t,p) => t.as_string(p) In addition, some existing #defines still exist but will go away: attotime_zero => attotime::zero attotime_never => attotime::never ATTOTIME_IN_SEC(s) => attotime::from_seconds(s) ATTOTIME_IN_MSEC(m) => attotime::from_msec(m) ATTOTIME_IN_USEC(u) => attotime::from_usec(u) ATTOTIME_IN_NSEC(n) => attotime::from_nsec(n) ATTOTIME_IN_HZ(h) => attotime::from_hz(h)
* Removed mess from names of some calls in image device code (no whatsnew) Miodrag Milanovic2011-01-061-1/+1
|
* Moved image devices implementation and related UI functions to emu section ↵ Miodrag Milanovic2011-01-051-0/+452
from MESS [Miodrag Milanovic]