summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* srcclean in preparation for branching release Vas Crabb2021-01-242-6/+6
|
* flopimg: Fix gcr checksum Olivier Galibert2021-01-221-7/+7
|
* ATTR_UNUSED, do you welcome C++17 in your heart and mind? Olivier Galibert2021-01-222-9/+9
|
* flopimg: Change the extracted bitstreams into vector<bool> Olivier Galibert2021-01-2226-671/+741
| | | | | | | flopimg: Change the extracted sectors into vector<vector<uint8_t>> flopimg: Add a Mac sector extraction apple 3.5 gcr: Generalize track creation/extraction apple 3.5 gcr: Add a pure sector format
* Much more core std::string_view modernization AJR2021-01-2010-131/+154
| | | | | | | | | | | | | | | - Remove corestr.h from emu.h; update a few source files to not use it at all - Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type - Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string - Remove the string-modifying version of zippath_parent - Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char * - Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only - Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this) - Change output_manager to use std::string_view for output name arguments - Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now) - Change miscellaneous other functions to accept std::string_view arguments - Remove a few string accessor macros from romload.h - Remove many unnecessary c_str() calls from logging/error messages
* dc42: better cell size on save and remove extraneous logging Olivier Galibert2021-01-172-8/+6
|
* swim2: Add reading, writing gcr up to track 63. Olivier Galibert2021-01-151-0/+6
|
* hp2640.cpp: Added tape emulation. (#7625) fulivi2021-01-122-29/+55
| | | | | * formats/hti_tape.cpp: Added support for Manchester encoded DC100 cassettes. * machine/hp2640_tape.cpp: added emulation of DC100 tape drives. * machine/hp_dc100_tape.cpp: Added unit name display.
* imd_dsk: restore # of tracks check [R. Belmont] arbee2021-01-101-1/+4
|
* imd_dsk: use has_variant() and accept either HD or QD as 80-track drives [R. ↵ arbee2021-01-101-7/+4
| | | | Belmont]
* imd_dsk: add missing file [R. Belmont] arbee2021-01-091-0/+2
|
* imd_fmt.cpp: if an IMD image is 40 track but the drive is HD, put the data ↵ arbee2021-01-091-4/+64
| | | | on even tracks like hardware would show [R. Belmont]
* Provide the variants to the floppy formats Olivier Galibert2021-01-09122-332/+351
|
* zippath.cpp: Checkpoint #2 AJR2021-01-081-32/+12
| | | | | - Fix unintialized variable issue in zippath_resolve - Eliminate one internal helper function
* util/zippath.cpp: Fix suffix for zip archives. Vas Crabb2021-01-081-1/+1
|
* zippath.cpp: Checkpoint AJR2021-01-062-97/+44
| | | | | - Adopt std::string_view as the input parameter type for most functions. (This necessitates some explicit copying to std::string since other APIs have not been updated yet.) - Remove zippath_parent_basename, whose implementation was utterly broken and fortunately unused.
* options.h: Be more honest about #including prerequisites AJR2021-01-021-0/+7
|
* vbiparse.cpp: Add missing #include AJR2021-01-021-0/+1
|
* disasmintf.h: Attempt at fixing build on other compilers AJR2021-01-021-0/+1
|
* Low-level #include overhaul AJR2021-01-0252-106/+102
| | | | | | | - vecstream.h: Revert changes made in aa29519528cb3dbdbfac56819bea670ed8c56c5d. The std::string_view conversion has been made a non-member function (util::buf_to_string_view) and moved to coretmpl.h. - strformat.h: Remove the using declaration importing util::string_format into the global namespace. It has been moved to emucore.h and a few tool sources; other references have been qualified. - osdcore.h: Split out file, directory and path classes and methods to a new header (osdfile.h), Doxygenizing the documentation comments. - Disaggregate many #includes that were including other standard or custom headers. emu.h now includes basically the same things that it did, but other headers have been streamlined; for instance, emucore.h no longer stealth-includes osdcore.h several ways.
* palette.cpp: Use std::fill instead of memset for dirty vector; add range check AJR2021-01-021-2/+3
|
* Cassette image processing cleanup AJR2021-01-019-102/+75
| | | | | | | - Add cassette_image::image_read_byte method for reading one byte at a time - coco_cas.cpp: Eliminate dependency on emucore.h - thom_cas.cpp: Declare some temporary variables much closer to where they are used - tvc_cas.cpp: Read and write entire sectors at a time
* Further additions of std::string_view AJR2021-01-015-33/+70
| | | | | | | - corefile.cpp, fileio.cpp: Change puts to take a std::string_view parameter - rendlay.cpp: Use std::string_view instead of bare pointers in various functions - vecstream.h: Add std::string_view conversion operator to obtain output buffer without needing to make it a C string with explicit null termination - xmlfile.cpp: Add get_attribute_string_ptr method that distinguishes between empty strings and absent attributes without falling back to C strings
* hash.cpp, hashing.cpp: Change string processing to use std::string_view ↵ AJR2021-01-014-43/+158
| | | | parameters; add sum16 type
* util/xmlfile.cpp: C++ comment conversion AJR2020-12-311-225/+225
|
* srcclean for 0.227 Vas Crabb2020-12-271-5/+5
|
* util/wavwrite.cpp: Hopefully fix build with clang libc++. Vas Crabb2020-12-271-0/+1
|
* More Lua interface cleanup - it's simpler with cleaner underlyng APIs. Vas Crabb2020-12-273-65/+91
| | | | | | | | | | | Made the sound manager mute controls readable, and got rid of system enable since it just controls system mute anyway. This was causing confusion: phantom2 was trying to use both independentlyt casuing the mute bit to be ignored. THe Lua interface changes are mostly changing methods to properties, some renames to make things clearer, and some additional properties for better control over snapshots.
* util/png: Use std::string_view internally in another function AJR2020-12-221-8/+6
|
* util/png: Update add_text to take std::string_view for arguments AJR2020-12-212-12/+11
|
* Fix some oversights and emergent behaviour with view selection. Vas Crabb2020-12-202-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | Exposed the "native snapview" option on the video manager. Trying to use presence of a single view is a poor proxy that breaks with multi-screen systems. Allow rotation to be changed for native snapshot views, and disable the zoom to screen area control when it has no effect on the selected view. Treat an empty string identically to "auto" for view selectction. Previously this was being used for prefix matching so it would force the first view. (This caused the bad snapshot view selection. It had been relying on "internal" not being a common view name prefix so it fell through to automatic selection, but when changed to an empty string it forced the first view.) Documented "auto" as well as "native" for the -snapview option and changed the default to auto rather than an empty string for consistency with the -viewN options. Added [w]string_view handlers to the stuff that's instantiated in strformat.cpp since we'll be increasingly using them. Cleaned up and updated some documentation.
* More Lua engine clean-up and documentation, resulting in core cleanup. Vas Crabb2020-12-181-61/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More Lua interface cleanup, additional properties and methods, and documentation migration/expansion. Emulated switch inputs can have "not" codes applied to host input axis directions. It works the same way as host switch inputs - push twice for a "not" prefix. Input polling helpers no longer need to store state in the input device items. There’s less leakage, and less chance of things interfering with each other. Allow snapshot view options to be configured through the internal UI via the video options menu. Made video options menus place initial focus on the currently selected view item. Removed some crud from the menu base class. Fixed the description of the "snapview" option. The value to get raw screen pixels was changed to "native" a long time ago but the description was never updated. Re-arranged the Golden Poker button lamps so that the 6-button layouts for Jolli Witch and Wild Witch make sense. In 6-button mode, the hold buttons double as bonus game and bet buttons, but the lamp outputs don't change. The simplest way to deal with this without requiring the user to switch views or using layout scripting is to place the dedicated buttons directly below the hold buttons that correspond to them. Removed some software list data that was redundantly copied into device_image_interface (m_supported was never even set, so it didn't even work), and made crc() work better (previously it wasn't recalculuated after unloading and loading another image). Made strformat.h and devcb.h play nicer with C++17 and pre-standard C++20. Format precision now correctly limits the length of string views. Confirmed that strformat.{h,cpp} works with pre-standard C++20 support in GCC 9. Removed an auto_alloc from cpu/arm7.
* support Redump extended bin/cue format for Dreamcast discs (#7422) nhand422020-12-172-1/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial check-in of Redump bin/cue support for Dreamcast GDI * correctly identifies multi-cue format and sets GDROM flags * creates a working Crazy Taxi chd from a Redump bin/cue * disabled debugging code and started tidying up * simple tool to compare chdman bin/cue and bin/gdi conversions, should be identical * final tidy up, the testing is going well * testing failed for Aero Dancing i (Japan), didnt zero last track * added some comments about .gdi compatibility * addressing review feedback on pull request #7422 * match TOSEC layout for Pattern I discs (3 tracks) * initial support for Pattern III discs * Pattern III discs now work and match TOSEC layout * reading datasize from wrong track, same result though * identify the GDI pattern, makes the code clearer * support for Pattern II and consecutive AUDIO tracks * use C99 type not POSIX type to build on Windows * support Redump tracks split across two .bin files
* unicode.h: Updates AJR2020-12-152-43/+16
| | | | | - Remove from emu.h (except for UTF8_xxx macros, which have been transplanted to emucore.h since a lot of drivers use them) and osdepend.h - Add std::string_view overrides for uchar_from_utf8 and normalize_unicode
* orao103: Support new TAP format and format now done properly Miodrag Milanovic2020-12-061-9/+18
|
* cqm_dsk.cpp, ti89.cpp: Fix wrong fallthroughs. Sandro Ronco2020-11-181-1/+1
|
* -unidasm: Allow input piped from stdin by specifying a bare hyphen as the ↵ Vas Crabb2020-11-1866-844/+612
| | | | | | | | | | filename. [AJR, Vas Crabb] -netlist: Give devices the C++17 namespace treatment. -Tidied up compiler warning options for 3rdparty. -emu/render.cpp: Exposed a few information view item properties.
* Fix most implicit fallthrough warnings from clang Vas Crabb2020-11-174-2/+4
|
* Remove some deprecated instantiations of static constexpr members (MSVC ↵ Vas Crabb2020-11-151-6/+2
| | | | complains about them now)
* Enable GCC implicit fallthrough warning. Vas Crabb2020-11-151-0/+1
| | | | | | I've guessed whether break or [[fallthrough]] is appropriate. In cases where it looked particularly suspicious, I added a FIXME comment. All of these changes should be reviewed by someone familiar with the code.
* -Switch to building MAME as C++17. Vas Crabb2020-11-158-264/+267
| | | | | | | * Updated sol2 to 3.2.2 * Updated pugixml to 1.10 * Increased minimum clang version to 6 * Cleaned up some stuff that can use new features
* Got rid of a couple of easy auto_alloc_array Vas Crabb2020-11-091-1/+1
|
* emu/devfind.h: Added missing memory_share_array_creator. Vas Crabb2020-11-081-7/+7
| | | | Also some miscellaneous tidying up.
* srcclean in preparation for 0.226 release branch Vas Crabb2020-10-253-8/+8
|
* aquarius: Added support for .CAQ cassette images. Nigel Barnes2020-10-192-0/+126
| | | | - Select 20K RAM as default.
* emu/debug: Removed more macros, added more const, make a couple more things ↵ Vas Crabb2020-10-121-2/+2
| | | | use smart pointers.
* formats/apridisk.cpp: Don't use megabytes of stack space. Vas Crabb2020-10-101-2/+2
|
* brdrline: Add frontiers, reduce timestep to improve performance Aaron Giles2020-10-091-802/+3414
|
* csw_cas: Added support for v1.xx format, non-compressed RLE, and removed ↵ Nigel Barnes2020-10-081-244/+167
| | | | LegacyWaveFiller.
* frogs: Add AFUNC frontiers to improve performance Aaron Giles2020-10-081-2921/+2796
|