summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.cpp
Commit message (Collapse)AuthorAgeFilesLines
* (nw) Clean up the mess on master Vas Crabb2019-03-261-17/+12
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-12/+17
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* romload: BIOS flag should apply to fills (and remove zero-value comments) Vas Crabb2019-02-281-17/+12
|
* Apply logical address mask properly in debug disassembly view AJR2018-08-241-2/+2
| | | | | | Associated core changes (nw) - Move definition of address_space_config from dimemory.cpp to emumem.cpp (declaration was already in emumem.h) - Add getters for more members of address_space_config with future privatization in mind (nw)
* nscsi_cd: support media changes (nw) Patrick Mackinlay2018-07-231-0/+4
| | | | | | Together, these changes enable softlist CD-ROM media changes for InterPro, and presumably other nscsi_cd systems. Haven't looked into how other CD-ROM devices work, but the romload fix should apply equally to them too. * nscsi_cd: detect and respond to media changes * romload: fix disk entry processing
* Move ROM loading macros to romentry.h and remove romload.h from emu.h (nw) AJR2018-06-241-0/+2
|
* (nw) allow BIOS declaration before first ROM region Vas Crabb2018-06-021-1/+1
|
* romload.cpp: Eliminate extraneous machine argument (nw) AJR2018-05-221-4/+4
|
* Kludge some absolute tag lookups in the core that can't really be helped (nw) AJR2018-05-211-6/+4
|
* check for error before reporting it (nw) Vas Crabb2018-03-261-1/+2
|
* Allow machine configuration to specify BIOS easily, move default BIOS ↵ Vas Crabb2018-03-261-46/+27
| | | | selection into device configuration complete
* Pet peeving with extreme prejudice (nw) Olivier Galibert2017-11-301-1/+1
|
* Make ROM BIOS reported in listxml output match what ROM loading does Vas Crabb2017-09-181-3/+1
| | | | | | (nw) This is the soure of the "BIOS can only apply to one region" meme - it actually works for all regions, but the listxml output was wrong, making it look like it didn't work.
* Turn most of the ROM entry accessor macros into templates, and make them ↵ Vas Crabb2017-09-181-10/+10
| | | | work on tiny_rom_entry/rom_entry pointers/references, also claw back a little performance lost in the ROM entry refactoring
* Fix -slot card,bios=rev (selected BIOS was being applied to slot itself, not ↵ Vas Crabb2017-08-041-44/+58
| | | | card)
* Changed Romload to show all actual hashes on a mismatch Nathan Woods2017-07-181-1/+4
|
* Overhaul to how MAME handles options, take two (#2341) npwoods2017-06-251-9/+9
|
* Revert "Overhaul to how MAME handles options (#2260)" Vas Crabb2017-05-071-9/+9
| | | | | | | | | | | | This reverts commit 536990e77b49ccc50ef275bfbf1018cc29c16154. Conflicts: src/frontend/mame/mame.cpp Sorry, but this change was half-baked. It breaks a lot of existing functionality and clearly hasn't been tested in more than a tiny subset of use cases. Please play this work back onto your own branch, and test it before submitting another PR.
* Overhaul to how MAME handles options (#2260) npwoods2017-05-051-9/+9
| | | | | | | | | | | | This is an overhaul to how MAME handles options to provide a better foundation for what MAME is already doing in practice. Previously, core_options was designed to provide an input/output facility for reading options from the command line and INI files. However, the current needs (image/slot/get_default_card_software calculus and MewUI) go way beyond that. Broadly, this PR makes the following changes: * core_options now has an extensibility mechanism, so one can register options that behave dramatically differently * With that foundation, emu_options now encapsulates all of the funky image/slot/get_default_card_software calculus that were previously handled by static methods in mameopts.cpp. Changes to emu_options should not automatically cascade in such a way so that it stays in a consistent state * emu_options no longer provides direct access to the slot_options/image_options maps; there are simpler API functions that control these capabilities * Many core_options functions that expose internal data structures (e.g. - priority) that were only really needed because of previous (now obsolete) techniques have been removed. * core_options is now exception based (rather than dumping text to an std::string). The burden is on the caller to catch these, and discern between warnings and errors as needed. Obviously this is a risky change; that's why this is being submitted at the start of the dev cycle.
* srcclean (nw) Vas Crabb2017-04-231-9/+9
|
* Workaround for sibling disk image loading issue (#2246) npwoods2017-04-191-9/+38
| | | Gory details in the comments
* Refactoring in response to MT#6531 Nathan Woods2017-04-061-3/+7
| | | | | | | | | | Prior to this change, options for images and slots were stored in the emu_options collection. Anything that might restart the emulation (such as slot changes and images that reset on load) had to manipulate the emu_options structure directly. The dynamic nature of images and slots meant that some elaborate conventions for setting up this collection had to be understood by clients. After this change, emu_options has two new members (image_options and slot_options) that expose image and slot selections via an std::map. Anything that changes images or slots in a fashion that needs to persist across sessions needs to modify these data structures. Additionally, some of the hairly logic (e.g. - get_default_card_software) now records its data here rather than trying to subvert the core_options system. This is how MT#6531 was fixed; now when diimage.cpp sees an image that resets on load, it just modifies the image_options structure and forces a reset. This allowed some further cleanups to happen within diimage. This should be considered a very risky change, and scrutiny/feedback is welcome. In particular, there seems to be functionality surrounding device bioses that I'm not 100% sure how it works; the syntax seems to imply that it only works on slot devices.
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-30/+30
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-30/+30
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* dynamic_buffer is just std::vector<UINT8> (nw) Miodrag Milanovic2016-10-211-1/+1
|
* srcclean (nw) Vas Crabb2016-09-261-1/+0
|
* Merge pull request #1180 from npwoods/split_softlist_code_redo Miodrag Milanović2016-08-081-2/+2
|\ | | | | Redo of split of src/emu/softlist.[cpp|h]
| * Redo of split of src/emu/softlist.[cpp|h] Nathan Woods2016-08-021-2/+2
| | | | | | | | | | | | | | | | This is a redo of the split first submitted in #137, with the following differences: * The newly refactored rom_entry data structure is used * I've kept the refactored softlist code in src/emu, in order to defer the mechanical process of moving it * I've kept includes of softlist[_dev].h out of diimage.h, so that changes to either do not trigger an emu.h recompilation * Obviously, this goes against the latest master
* | C++-fiied code that iterates over rom_entry arrays (without usage of ↵ Nathan Woods2016-08-071-8/+7
| | | | | | | | rom_[first|next]_*)
* | Created a tiny_rom_entry structure for the purposes of rom_entry ↵ Nathan Woods2016-08-061-0/+27
| | | | | | | | | | | | | | | | declarations in code, and a first pass at the required core changes to unpack tiny_rom_entry structures at runtime. WARNING - I've done preliminary testing on a tiny build (pacman works), but nothing more. I know for a fact that a full compile fails
* | Fixed ROM_FILL when fill value is hex. Robbbert2016-08-051-1/+1
|/
* Fixed breakage caused by a change in how the byte for ROM_FILL is ↵ Nathan Woods2016-08-011-5/+8
| | | | represented with recent changes
* Added some default constructors to rom_entry(), and made it so changes to ↵ Nathan Woods2016-08-011-1/+1
| | | | flags are done through a set_flags() accessor method
* Changes rom_entry from a struct to a class, storing its strings as ↵ Nathan Woods2016-08-011-7/+7
| | | | | | | std::string and separated the declaration into a new header. This should really be followed up by further changes to eliminate the usage of the weird accessor macros in favor of conventional C++ accessors
* for bool type use true and false (nw) Miodrag Milanovic2016-07-311-12/+12
|
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-2/+2
| | | | to inline functions (nw)
* Changed various string arguments for emu_file::open() from 'const char *' to ↵ Nathan Woods2016-07-291-2/+2
| | | | std::string
* Moved src/emu/hash.[cpp|h] into src/lib/util, and namespaced that code (and ↵ Nathan Woods2016-07-231-13/+13
| | | | hashing.[cpp|h]) into util::
* Exposed several strings as std::string on softlist objects, and fixed a few bugs Nathan Woods2016-07-201-2/+1
|
* const correctness related changes to softlist Nathan Woods2016-07-191-1/+1
|
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-1/+1
|
* Added command strobe callback interface for LDV1000, and hooked it up to ↵ angelosa2016-06-151-2/+0
| | | | | | esh.cpp driver. [Angelo Salese] (out of whatsnew: also fixed irq 0 hookup, using device_timer to ack an irq for MAME is never a good idea)
* romload.cpp: added ROMX_FILL, passing a ROM_SKIP(param_value) will fill and ↵ angelosa2016-06-151-1/+10
| | | | | | | skip just like a ROM_LOAD16_BYTE macro [Angelo Salese] Added line blinking and overlay opacity selectors for esh.cpp [Angelo Salese] Some minor improvements for LDP-1000 (nw)
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-1/+1
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-1/+1
|
* Split UI and frontend part from core [Miodrag Milanovic] Miodrag Milanovic2016-04-231-2/+2
|
* Iterate over devices C++11 style AJR2016-04-181-35/+35
| | | | | | Replace the old device_iterator and its specialized versions with functionally equivalent classes that use standard operators to yield references to devices/interfaces rather than pointers. With range-based for loops, they no longer have to be stored in named variables, though they can also be reused concurrently since the iteration state is now maintained by a subclass. Add a few more typical getters to device_t::subdevice_list.
* Make osd_file a polymorphic class that's held with smart pointers Vas Crabb2016-03-141-24/+24
| | | | | | | | | | | | | | | Make avi_file a class that's held with smart pointers, encapsulate various AVI I/O structures Make zip_file and _7z_file classes rather than having free functions everywhere Hide zip/7z class implementation behind an interface, no longer need to call close() to send back to the cache Don't dump as much crap in global namespace Add solaris PTY implementation Improve variable expansion for SDL OSD - supports ~/$FOO/${BAR} syntax Rearrange stuff so the same things are in file module for all OSDs Move file stuff into its own module 7z/zip open and destruct are still not thread-safe due to lack of interlocks around cache access Directory functions still need to be moved to file module SDL OSD may not initialise WinSock on Windows
* Fix rom load warning messages (nw) Robbbert2016-02-291-4/+4
|
* Replace strformat, strprintf and strcatprintf with type-safe steam_format ↵ Vas Crabb2016-02-281-18/+18
| | | | | | | | | and string_format Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools