summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.cpp
Commit message (Collapse)AuthorAgeFilesLines
* (nw) Clean up the mess on master Vas Crabb2019-03-261-1/+1
| | | | | | | | | | | | | 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-1/+1
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* More UI stuff: Vas Crabb2019-01-191-1/+1
| | | | | | | | | * Split up the different parts of ICO loading in the menus (locating files, scaling, drawing, etc.) * Added icon support to software selection menu * Added support for more ICO file variants, including PNG-in-ICO (new DIB parser is overkill for ICO but I can factor it out for BMP loading at some point) * Added favourites filter for software menus - includes software that's favourited on any system, so GBC includes DMG favourties and vice versa * Eliminated unnecessary member variables and O(n) walks in software selection menu * Made the menus' cached texture structures a bit more efficient
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-14/+14
| | | | | | | | | | | | * 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
* Revert "Added IS_ENABLED, so we have compiler check for non used part, it is ↵ Miodrag Milanovic2016-11-121-3/+3
| | | | | | checked but not compiled in (nw)" This reverts commit c0407f073bf7afe26407c4add5cfeaf7104913c9.
* Added IS_ENABLED, so we have compiler check for non used part, it is checked ↵ Miodrag Milanovic2016-11-111-3/+3
| | | | | | but not compiled in (nw) false and true now used instead of integer where used as bool
* more TRUE/FALSE cleanup (nw) Miodrag Milanovic2016-10-221-2/+2
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-14/+14
| | | | | 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
* make path_iterator hold onto its search path Vas Crabb2016-08-191-56/+87
|
* Let's give the new srcclean a spin... Vas Crabb2016-08-021-1/+1
|
* Changed various string arguments for emu_file::open() from 'const char *' to ↵ Nathan Woods2016-07-291-21/+15
| | | | std::string
* Moved src/emu/hash.[cpp|h] into src/lib/util, and namespaced that code (and ↵ Nathan Woods2016-07-231-1/+1
| | | | hashing.[cpp|h]) into util::
* POSIX implementation for new directory read features, cleanup of Windows ↵ Vas Crabb2016-06-251-6/+2
| | | | implementation, return directory handle as smart pointer, fix full build [Vas Crabb]
* C++-ified osd_directory (now osd::directory), and added last_modified to ↵ Nathan Woods2016-06-241-5/+5
| | | | osd::directory::entry
* Try next archive type if file not found, not just on open error Vas Crabb2016-03-251-53/+53
|
* Make emu_file archive searh order CRC+path, CRC+partial path, CRC, path, ↵ Vas Crabb2016-03-251-85/+19
| | | | partial path and fold some redundant code
* Fold some redundant code Vas Crabb2016-03-181-70/+17
|
* * Remove confusing method from vectorstreams that hide base_ios method ↵ Vas Crabb2016-03-181-53/+22
| | | | | | | | | | | | | (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 use-after-move Vas Crabb2016-03-151-2/+2
|
* Make osd_file a polymorphic class that's held with smart pointers Vas Crabb2016-03-141-80/+70
| | | | | | | | | | | | | | | 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
* Use type-safe printf for core_file and emu_file, surprisingly few knock-on ↵ Vas Crabb2016-03-091-17/+2
| | | | | | effects Properly fix up a couple of places I64FMT was being used, still more to deal with
* Turn core_file into a proper class that gets cleaned up safely using unique_ptr Vas Crabb2016-03-061-46/+34
| | | | Subverted somewhat by chd_file class
* Add function for flushing file buffers Vas Crabb2016-03-011-4/+16
|
* Return std::string objects by value rather than pass by reference AJR2016-01-101-2/+1
| | | | | | - strprintf is unaltered, but strformat now takes one fewer argument - state_string_export still fills a buffer, but has been made const - get_default_card_software now takes no arguments but returns a string
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-54/+54
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+910