summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/zippath.h
Commit message (Collapse)AuthorAgeFilesLines
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-2/+3
| | | | | | | | | Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.
* Much more core std::string_view modernization AJR2021-01-201-1/+0
| | | | | | | | | | | | | | | - 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
* zippath.cpp: Checkpoint AJR2021-01-061-8/+5
| | | | | - 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.
* there are reasons for things being the way they were (nw) Vas Crabb2020-01-311-1/+1
|
* fixed some modernize-use-equals-default clang-tidy warnings (nw) (#6237) Oliver Stöneberg2020-01-301-1/+1
|
* Convert zippath directory to a C++ interface Vas Crabb2018-01-101-20/+22
|
* more TRUE/FALSE cleanup (nw) Miodrag Milanovic2016-10-221-2/+2
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-1/+1
| | | | | 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
* Converted a number of zippath calls that took 'const char *' to std::string Nathan Woods2016-07-291-8/+8
|
* As per Vas Crabb, readding overloads that take a std::string& parameter for ↵ Nathan Woods2016-07-041-0/+3
| | | | the result
* Changed a few zippath related functions to return their strings as a return ↵ Nathan Woods2016-07-031-3/+3
| | | | value, as opposed to passing in a destination buffer
* Changed zippath.[cpp|h] to use C++-style comments Nathan Woods2016-07-031-12/+12
|
* C++-ified osd_directory (now osd::directory), and added last_modified to ↵ Nathan Woods2016-06-241-1/+1
| | | | osd::directory::entry
* Cleanups and version bump Miodrag Milanovic2016-03-301-1/+0
|
* * Remove confusing method from vectorstreams that hide base_ios method ↵ Vas Crabb2016-03-181-3/+6
| | | | | | | | | | | | | (fixes disassembly view) * Allow std::string to pass through core_file unmolested (reduces temporary allocations) * Make zip/7z instances of same class with uniform interface * zippath browsing is broken at the moment This is another step towards transparent archive support. It's now possible to access zip and 7z archives with the same code. Nothing is taking advantage of it yet. There's now some very similar code in fileio.cpp and clifront.cpp that could be folded at some point.
* Make osd_file a polymorphic class that's held with smart pointers Vas Crabb2016-03-141-2/+2
| | | | | | | | | | | | | | | 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
* Turn core_file into a proper class that gets cleaned up safely using unique_ptr Vas Crabb2016-03-061-1/+1
| | | | Subverted somewhat by chd_file class
* lot more updated (nw) Miodrag Milanovic2015-05-111-2/+2
|
* Missed lib for adding licenses (nw) Miodrag Milanovic2015-05-071-0/+2
|
* more astring -> std::string (nw) Miodrag Milanovic2015-04-191-5/+5
|
* Removed old C-based interface to astrings. astring exists only as Aaron Giles2012-01-031-6/+5
| | | | | | a class now. Updated all stragglers (mostly tools) to use the class form. [Aaron Giles]
* - moved opresolv and zippath into /lib/util from MESS [Miodrag Milanovic] Miodrag Milanovic2010-06-161-0/+66
- removed ifdef MESS from osd part since calls are needed by zippath