summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/image.h
Commit message (Collapse)AuthorAgeFilesLines
* ui: stop the game selector reporting systems with no roms as etabeta782015-01-181-0/+1
| | | | | | | | | | | | | | | | missing files. [Fabio Priuli] ui: when launching systems with mandatory carts, either from command line or from the game selector, prompt the user with the file manager menu so that he can mount a game where needed, instead of killing emulation with an error. [Fabio Priuli] out of whatsnew: it is now finally possible to launch nes and snes and a2600 (and a few more) from the internal system selector! also MESS doesn't error out anymore if you launch such systems with no carts mounted from command line. in short: emulation finally behaves as users typically expect!
* image.c: Added support for loading a default battery, instead of a fixed ↵ Fabio Priuli2014-05-021-0/+1
| | | | | | | | 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 src/emu/uigfx.? ==> src/emu/ui/viewgfx.?, move C++-ifications Nathan Woods2014-01-251-1/+0
|
* Removed some calls in image.c, note that add_dynamic_device is still used, ↵ Miodrag Milanovic2012-02-201-5/+0
| | | | it's still handy (no whatsnew)
* Removed old C-based interface to astrings. astring exists only as Aaron Giles2012-01-031-1/+1
| | | | | | a class now. Updated all stragglers (mostly tools) to use the class form. [Aaron Giles]
* Moved format handling and all formats to separate library [Miodrag Milanovic] Miodrag Milanovic2011-05-061-2/+0
|
* BIG update. Aaron Giles2011-03-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 *)
* Converted core_options to a class. Removed a bunch of marginal Aaron Giles2011-03-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functionality in favor of alternate mechanisms. Errors are now reported via an astring rather than via callbacks. Every option must now specify a type (command, integer, float, string, boolean, etc). Command behavior has changed so that only one command is permitted. [Aaron Giles] Changed fileio system to accept just a raw searchpath instead of an options/option name combination. [Aaron Giles] Created emu_options class dervied from core_options which wraps core emulator options. Added mechanisms to cleanly change the system name and add/remove system-specific options, versus the old way using callbacks. Also added read accessors for all the options, to ensure consistency in how parameters are handled. Changed most core systems to access emu_options instead of core_options. Also changed machine->options() to return emu_options. [Aaron Giles] Created cli_options class derived from emu_options which adds the command-line specific options. Updated clifront code to leverage the new class and the new core behaviors. cli_execute() now accepts a cli_options object when called. [Aaron Giles] Updated both SDL and Windows to have their own options classes, derived from cli_options, which add the OSD-specific options on top of everything else. Added accessors for all the options so that queries are strongly typed and simplified. [Aaron Giles] Out of whatsnew: I've surely screwed up some stuff, though I have smoke tested a bunch of things. Let me know if you hit anything odd. Also I know this change will impact the WINUI stuff, please let me know if there are issues. All the functionality necessary should still be present. If it's not obvious, please talk to me before adding stuff to the core_options class.
* mame_file is now emu_file and is a class. It is required Aaron Giles2011-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | to pass a core_options object to the constructor, along with a search path. This required pushing either a running_machine or a core_options through some code that wasn't previously ready to handle it. emu_files can be reused over multiple open/close sessions, and a lot of core code cleaned up nicely as things were converted to them. Also created a file_enumerator class for iterating over files in a searchpath. This replaces the old mame_openpath functions. Changed machine->options() to return a reference. Removed public nvram_open() and fixed jchan/kaneko16 to stop directly saving NVRAM. Removed most of the mame_options() calls; this will soon go away entirely, so don't add any more. Added core_options to device_validity_check() so they can be used to validate things.
* Added call to add device with parameters sent and his sub devices (no whatsnew) Miodrag Milanovic2010-06-301-0/+2
|
* Moved back utility functions in order to make mess tools compile again (no ↵ Miodrag Milanovic2010-06-291-4/+0
| | | | whatsnew)
* Moved some utility functions to image from MESS (no whatsnew) Miodrag Milanovic2010-06-291-0/+5
|
* - Moved ioproc implementation from MESS [Miodrag Milanovic] Miodrag Milanovic2010-06-231-0/+10
| | | - Implemented more image device calls, and did some cleanup (no whatsnew)
* Implemented most of calls for image device (no whatsnew) Miodrag Milanovic2010-06-181-0/+1
|
* - removed MESS dependency from config.c Miodrag Milanovic2010-06-171-0/+23
- moved image legacy device implementation to devimage.c - created image.c implementation with initialization of devices/configuration for image devices, used those calls from mame.c - some minor cleanup of legacy device and initial implementation of some calls (no whatsnew for now, this is just for log,will put more info on final commit)