Commit Graph

25 Commits

Author SHA1 Message Date
Fabio Priuli
b98f54de7b Improved the way software names are displayed by the Internal File Manager when loading from software list and fixed wrong displayed name when loading with shortname:part. No whatsnew needed (being MESS-specific) 2011-01-14 22:07:07 +00:00
Fabio Priuli
af54f39fc3 softlists: added WARNING if loading a software with supported="partial" or "no" [Fabio Priuli] 2011-01-14 13:18:56 +00:00
Fabio Priuli
2c106c458a allow software lists to look for files in the rompath too [Fabio Priuli]
out of whatsnew
1. summing up, you can now load roms through softwarelists from: listname/romset, listname/parent + now also romset & parent (like MAME)
2. there is a lot of repeated code, but I still haven't found a satisfactory way to handle the both loading processes in a single function. I'll keep looking into it!
2011-01-13 20:50:27 +00:00
Fabio Priuli
7ee4a870c2 devimage.c: added support for split set to softlist for cass and flop too [Fabio Priuli] 2011-01-13 18:26:34 +00:00
Fabio Priuli
42d3a87923 romload.c: added support for split set to softlist (for cart, cd and hd) [Fabio Priuli]
out of whatsnew: to avoid too much duplicate code, I implemented this as follow: 
for parent, we pass a location tag "list/parentname" to search for the roms (no 
changes in this case); for  clones, we pass a composed location tag 
"list/clonename%list/parentname" (notice the '%' separator) and then it is 
open_rom_file to split it, if it finds a %, before searching for the rom.

out of whatsnew, 2: I also added the same support for cassettes and floppies (in 
devimage.c), but it is still commented out because I had only a few files for testing.
as soon as I'm sure nothing gets broken, I'll enable it.
2011-01-13 17:09:27 +00:00
Fabio Priuli
ce792b2819 fixed bogus creation of empty file when loading through softlists. no whatsnew. 2011-01-13 09:25:58 +00:00
Miodrag Milanovic
33b47edf95 - Fixed issue with image empty slot [Miodrag Milanovic]
- Default for writeconfig is now 0 for MESS since it is not needed anymore
- Fixed handling of mounted devices on hard reset
- Unified some emuopts code, and removed ifdefs
2010-11-26 13:50:56 +00:00
Aaron Giles
ab18e234b0 Cleanups and version bump. 2010-08-12 04:24:53 +00:00
Miodrag Milanovic
b8b87c341a Newline at end of devimage.c (no whatsnew) 2010-08-04 08:30:38 +00:00
Miodrag Milanovic
2301c7d1e5 Fixed image device error handling [ShimaPong, Miodrag Milanovic] 2010-08-04 07:49:46 +00:00
Aaron Giles
7ae55db1ec Cleanups and version bump. 2010-07-22 05:24:06 +00:00
Miodrag Milanovic
c09065ef97 Fixed image unload and creation [Sandro Ronco, Miodrag Milanovic] 2010-07-12 13:52:35 +00:00
Miodrag Milanovic
5a4b6fa9a0 Adding ability to support other types of software lists, so floppies, cassettes, cd-roms are now possible to be used [Miodrag Milanovic] 2010-07-08 12:59:21 +00:00
Miodrag Milanovic
b797437b3b Added per-device image softlist loading routine [Miodrag Milanovic]
Renamed feof to image_feof (in device_image_interface) in order to compile on FreeBSD [El Barto]
2010-07-07 13:25:03 +00:00
Aaron Giles
30662dcdef Cleanups and version bump. 2010-07-06 17:30:28 +00:00
Aaron Giles
733b797a3d Split mame.c into mame.c and machine.c, the latter containing the
running_machine definition and implementation.

Moved global machine-level operations and accessors into methods on the
running_machine class. For the most part, this doesn't affect drivers
except for a few occasional bits:

  mame_get_phase() == machine->phase()
  add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...)
  add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...)
  mame_get_base_datetime() == machine->base_datetime()
  mame_get_current_datetime() == machine->current_datetime()

Cleaned up the region_info class, removing most global region accessors
except for memory_region() and memory_region_length(). Again, this doesn't
generally affect drivers.
2010-06-30 03:46:21 +00:00
Aaron Giles
41b9dbb9ac Made the machine_config a proper object. Added detokenize method to
this object which can be called multiple times to append new devices
after the initial machine configuration is set up. Updated member
variables to match new naming convention.

Changed the running_machine to take a constructed machine_config
object in the constructor, instead of creating one itself, for
consistency. Also added machine->total_colors() as a shortcut to 
machine->config->m_total_colors.
2010-06-28 06:40:44 +00:00
Miodrag Milanovic
a456b3322d - Fixed compile
- Moved some defines from MESS to MAME
- Cleaned MESS side and therefore removed some includes
(no whatsnew)
2010-06-27 09:58:57 +00:00
Miodrag Milanovic
e3a90fa281 Implemented hash file and battery support and did some cleanup (no whatsnew) 2010-06-24 15:10:53 +00:00
Miodrag Milanovic
ea8dd94677 - Moved ioproc implementation from MESS [Miodrag Milanovic]
- Implemented more image device calls, and did some cleanup (no whatsnew)
2010-06-23 19:35:49 +00:00
Miodrag Milanovic
cbe7260a59 - Moved softlist implementation from MESS [Miodrag Milanovic]
- Moved image related UI from MESS to emu core
- Reimplemented filename related image device calls
2010-06-20 18:48:02 +00:00
Miodrag Milanovic
333a6d2032 Prevent some overrides of exiting variables, implementation will be updated later (no whatsnew) 2010-06-18 14:13:12 +00:00
Miodrag Milanovic
480c2fcaf6 Changed callback function parameter types for image device (no whatsnew) 2010-06-18 13:49:38 +00:00
Miodrag Milanovic
fd915ad0a4 Implemented most of calls for image device (no whatsnew) 2010-06-18 13:19:56 +00:00
Miodrag Milanovic
826dba5923 - removed MESS dependency from config.c
- 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)
2010-06-17 20:06:54 +00:00