summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* srcclean (nw) Vas Crabb2017-04-232-21/+21
|
* Pruned out some cruft in src/lib/util/options.[cpp|h] Nathan Woods2017-04-172-29/+4
|
* More options refactoring Nathan Woods2017-04-162-4/+25
| | | | | | | | This should address outstanding concerns with PR#2231. I'm trying to turn emu_options into a self contained structure that encapsulates behaviors related to options, including the gymnastics pertaining to image/slot loading and interactions with get_default_card_software() and "just works". When the MAME 0.186 development cycle starts up, I hope to take this further. I want to make core_options::entry an abstract base class so that the entries associated with image options and slot options can derive from it. This will eliminate the current need for emu_options to directly expose maps for image and slot options. For now, I'm in stabilization mode, and I hope to get things working for a stable 0.185 release.
* Fixes issues specifying image/slot options fron INI files (reported by ↵ npwoods2017-04-152-1/+10
| | | | | | | Robbbert) (#2231) This fix really doesn't go far enough. I added hooks so that options specified at the command line can also be responded to when parsed from INI files, but in the long run much of the logic that is currently in mame_options should go into emu_options so that when an option is specified, all of the wacko logic around slot/image specification "just works" because it is encapsulated within emu_options. We have a release 11 days away; I want to be in stabilization mode.
* cdrom: translate from 2336 to 2048 (nw) cracyc2017-04-101-0/+6
|
* Introduced an 'util::arbitrary_clock' template class, to represent a clock ↵ npwoods2017-04-064-50/+272
| | | | | | | | | | | that "knows" when the epoch starts (#2010) * Introduced an 'util::arbitrary_clock' template class, to represent a clock that "knows" when the epoch starts Also: - Converted the NTFS filetime code to use util::arbitrary_clock - Converted the Mac datetime code to use util::atribrary_clock This is in preparation for a bigger change to Imgtool where I eliminate usage of time_t
* Fixed issue that could cause bogus arguments to be reported incorrectly Nathan Woods2017-04-021-3/+8
| | | | Examples: 'mame -whatever nes' would previously be reported as "Unrecognized argument: nes"
* srcclean (nw) Vas Crabb2017-03-261-2/+2
|
* Refactored HTTP handling to be easier to extend and use (nw) Miodrag Milanovic2017-03-191-0/+4
|
* fix crash on excessive command-line options, clean up some tabulation, ↵ Vas Crabb2017-03-031-1/+1
| | | | remove long-dead option
* Fixed regression pertaining to specification of empty strings as slot names Nathan Woods2017-02-272-5/+6
| | | | e.g. - 'next -scsibus:1 "" -listdevices'
* Fix clang-5.0 warning .. Maximum of unsigned X and 0 is always X. (nw) couriersud2017-02-241-1/+1
|
* Fixed an issue where device options (e.g. -cart) were reported as unknown ↵ Vas Crabb2017-02-241-2/+2
|\ | | | | | | | | | | | | when they actually worked (#2081) Conflicts: src/frontend/mame/clifront.cpp
* | Vas feedback Nathan Woods2017-02-231-8/+3
| |
* | Fixed an issue where device options (e.g. -cart) were reported as unknown ↵ Nathan Woods2017-02-222-25/+54
|/ | | | | | | | when they actually worked This change also changes around how command line arguments are passed around; specifically I changed argc/argv to be std::vector<std::string> Note this is not passed around 'const', the reason being that the command line processing will now "eat" the vector
* Softlist cleanup (#2075) npwoods2017-02-222-0/+44
| | | | | | | | | | * Eliminates the need for emu_options::update_cached_options() by providing a hook for when option values change * This is a preliminary fix to the issue identified in PR#2065 * More softlist related refactoring: - We now only parse the command line (with core_options::parse_command_line()) once - Options that are set up during slot and image setup go through a 'value_specifier' function - Eliminated the command line postprocessing
* srcclean (nw) Vas Crabb2017-02-191-2/+2
|
* Cherry-pick some features from self-registering drivers PoC: Vas Crabb2017-02-161-2/+1
| | | | | | | | * Use size_t for sizes and <algorithm> for algorithms * Fix up some files that were getting linked into multiple libs * Add missing virtual method to sh2 peripheral class * Put shortname in driver struct for locality * Use shared pointers in config LRU cache for safety
* Sync with upstream (nw) Miodrag Milanovic2017-02-053-6/+19
|
* fix chd build (nw) Vas Crabb2017-02-021-7/+7
|
* yo sup dawg (nw) Vas Crabb2017-02-021-7/+47
|
* Fixed building using system utf8proc Julian Sikorski2017-01-261-1/+1
|
* srcclean (nw) Vas Crabb2017-01-225-126/+126
|
* Merge pull request #1911 from npwoods/imgtool_use_wide_console Vas Crabb2017-01-052-0/+40
|\ | | | | [Imgtool] Changed to use wcout/wcerr in order to support Unicode console output
| * Vas Crabb feedback: Nathan Woods2017-01-041-3/+3
| | | | | | | | | | | | | | | | 1. Changed the Win32 code to use _O_U8TEXT() 2. Reordered system #includes 3. Changed a number of 'std::wcout << ...' to use util::stream_format() I'm getting massive code compilation issues, and it isn't clear to me what the problem is. I'm committing my WIP right now, with the intention of reviewing the specifics soon.
| * [Imgtool] Changed to use wcout/wcerr in order to support Unicode console output Nathan Woods2017-01-022-0/+40
| | | | | | | | I really don't like the prevalence of '#ifdef WIN32' in this change, both the _setmode() and bypassing codecvt. I strongly suspect that the latter is the consequence of some mistake that in practice doesn't cause problems in MSVC. I welcome all eyes.
* | Added websockets as well (nw) Miodrag Milanovic2017-01-044-1/+24
| |
* | Added initial HTTP/HTTPS webserver/websocket server support (nw) Miodrag Milanovic2017-01-0413-0/+3251
|/
* Introduced utf8proc and created wrapper code to expose a prettier API Nathan Woods2016-12-312-1/+96
|
* Make bitmaps movable, allowing them to be used in vectors and emplaced easily. Vas Crabb2016-12-153-62/+128
| | | | You're still responsible for ensuring you don't move a bitmap while a texture refers to it.
* coretmpl: add an associative LRU cache with map-like behaviour Vas Crabb2016-12-151-1/+387
| | | | | | | | | | | | | | selmenu: use LRU cache so icons don't all need to be reloaded on scroll uismall.bdf: set default character for missing glyphs rendfont.cpp: * encapsulate many BDF and BDC handling details * make file I/O 64-bit clean, check for allocation errors * more solid BDF parser with error messages and trace logging * fix heap smash when building bitmaps for BDF fonts * extend BDC format to support high planes and default character * render default character if glyph not found for BDF/BDC
* XML refactoring: Vas Crabb2016-12-112-142/+152
| | | | | | | * move stuff to namespace util::xml * scope down some enums * split config load/save delegate types * make config load take const so it can't mangle data
* delegates: Don't crash on late binding if no object is actually needed [O. ↵ Olivier Galibert2016-12-091-1/+1
| | | | | | Galibert] pci9050: Fix the mappings [O. Galibert]
* srcclean (nw) Vas Crabb2016-11-271-3/+3
|
* A round of spelling/typographical fixes to source comments (nw) Scott Stone2016-11-244-8/+8
|
* Work around buggy standard libraries (nw) Vas Crabb2016-11-211-2/+2
|
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-192-1/+13
| | | | | | | | | | | | * 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
* gah, wasn't quite compatible (nw) Vas Crabb2016-11-171-3/+3
|
* more xmlfile cleanup (nw) Vas Crabb2016-11-172-141/+45
| | | | | | | | * an empty tag and a self-closing tag are semantically equivalent, so std::string can be used saving some manual allocation * a valid tag can't have an empty name, so that can be std::string too * still expose empty strings as nullptr to API users * scope down the int_format enum * # is not £ ffs
* Reverting this change, it is compiler bug, confirmed by Microsoft VSO#292426 ↵ Miodrag Milanovic2016-11-171-1/+1
| | | | (nw)
* Fix compilation under VS2017 (nw) Miodrag Milanovic2016-11-161-1/+1
| | | | default_semantics is used by apply so need to be public
* Turn xmlfile API into something that looks like C++ Vas Crabb2016-11-172-564/+517
| | | | It's still a bit quirky but it's far better encapsulated before, and it plays nice with const (nw)
* Revert "using of IS_ENABLED in files used in tiny build (nw)" Miodrag Milanovic2016-11-124-23/+23
| | | | This reverts commit 1efccdd38d4bac6ec44e13f0a6cdf877e3a1c7cb.
* using of IS_ENABLED in files used in tiny build (nw) Miodrag Milanovic2016-11-114-23/+23
|
* No need for osd_malloc, osd_malloc_array and osd_free (nw) Miodrag Milanovic2016-11-113-4/+4
| | | | MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
* delegate fix - lambda always have object (nw) Miodrag Milanovic2016-11-081-1/+1
|
* Fix heap corruption when loading a new chd fails. Throw ↵ smf-2016-11-061-3/+4
| | | | CHDERR_FILE_NOT_WRITEABLE rather than CHDERR_UNSUPPORTED_VERSION if you try to open an old version for writing [smf]
* Do not use FUNC in delegate where applicable (nw) Miodrag Milanovic2016-11-061-27/+12
|
* try to make GCC 5.4.0 happy (nw) Miodrag Milanovic2016-11-051-1/+1
|
* Delegate support for lambdas and std::functions in general, also supporting ↵ Miodrag Milanovic2016-11-051-35/+80
| | | | const members now [Miodrag Milanovic]