summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/un7z.cpp
Commit message (Collapse)AuthorAgeFilesLines
* util/ioprocs.cpp: Added wrappers for common patterns. (#11608) Vas Crabb2024-02-251-2/+1
| | | | | emu/diimage.h: Removed fread overloads that allocate memory for output. util/core_file.cpp: Changed output size of load to size_t.
* 3rdparty/lzma: Updated to version 23.01. Vas Crabb2023-12-061-3/+3
|
* 3rdparty/lzma: Updated to LZMA SDK version 22.01 Vas Crabb2023-05-041-8/+21
|
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-183/+284
| | | | | | | | | 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.
* Low-level #include overhaul AJR2021-01-021-0/+2
| | | | | | | - 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.
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-261-9/+9
| | | | | | | | | | | | | | | | | (nw) This has been a long time coming but it's here at last. It should be easier now that logerror, popmessage and osd_printf_* behave like string_format and stream_format. Remember the differences from printf: * Any object with a stream out operator works with %s * %d, %i, %o, %x, %X, etc. work out the size by magic * No sign extending promotion to int for short/char * No widening/narrowing conversions for characters/strings * Same rules on all platforms, insulated from C runtime library * No format warnings from compiler * Assert in debug builds if number of arguments doesn't match format (nw) Also removed a pile of redundant c_str and string_format, and some workarounds for not being able to portably format 64-bit integers or long long.
* fix building with clang 6.0.1 (nw) smf-2018-07-071-1/+2
|
* use standard types uintptr_t, char16_t and char32_t instead of FPTR, ↵ Miodrag Milanovic2016-10-221-2/+2
| | | | utf16_char, unicode_char (nw)
* Introduced src/lib/util/timeconv.[c|h], moved code from un7z.cpp into it, ↵ Nathan Woods2016-06-261-42/+4
| | | | and implemented win_time_point_from_filetime() in terms of it
* Supply modified time for files in archives [Vas Crabb] Vas Crabb2016-06-251-21/+85
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-2/+2
|
* Make un7z a bit chattier, too Vas Crabb2016-04-111-39/+62
|
* Update LZMA SDK to 15.14 Vas Crabb2016-04-091-8/+7
|
* Improve 7zip file I/O code (should fix >=4GB 7z archives on LP32/LLP64) Vas Crabb2016-04-061-18/+18
|
* Cleanups and version bump Miodrag Milanovic2016-03-301-1/+0
|
* Make emu_file archive searh order CRC+path, CRC+partial path, CRC, path, ↵ Vas Crabb2016-03-251-11/+45
| | | | partial path and fold some redundant code
* Damn you glibstdc++ (nw) Vas Crabb2016-03-181-0/+1
|
* * Remove confusing method from vectorstreams that hide base_ios method ↵ Vas Crabb2016-03-181-36/+43
| | | | | | | | | | | | | (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.
* Fix 7z name match, fix VS2015 build Vas Crabb2016-03-151-1/+1
|
* Make osd_file a polymorphic class that's held with smart pointers Vas Crabb2016-03-141-352/+341
| | | | | | | | | | | | | | | 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
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-24/+24
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+494