dolphin/Source/Core/DiscIO
JosJuice 5ca3aee00a FileUtil: Add a class for Exists/IsDirectory/GetSize
Some code was calling more than one of these functions in a row
(in particular, FileUtil.cpp itself did it a lot...), which is
a waste since it's possible to call stat a single time and then
read all three values from the stat struct. This commit adds a
File::FileInfo class that calls stat once on construction and
then lets Exists/IsDirectory/GetSize be executed very quickly.

The performance improvement mostly matters for functions that
can be handling a lot of files, such as File::ScanDirectoryTree.

I've also done some cleanup in code that uses these functions.
For instance, some code had checks like !Exists() || !IsDirectory(),
which is functionally equivalent to !IsDirectory(), and some
code was using File::GetSize even though there was an IOFile
object that the code could call GetSize on.
2017-06-29 19:07:29 +02:00
..
Blob.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Blob.h Fix references to CACHE_REVISION in DiscIO comments 2017-06-27 21:32:14 +02:00
CISOBlob.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
CISOBlob.h Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
CMakeLists.txt DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
CompressedBlob.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
CompressedBlob.h Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
DiscIO.vcxproj DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
DiscIO.vcxproj.filters DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
DiscScrubber.cpp Merge pull request #5611 from JosJuice/reorganize-file-namespace 2017-06-15 23:28:36 +02:00
DiscScrubber.h Filesystem: Replace GetFileList() 2017-06-14 15:23:48 +02:00
DriveBlob.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
DriveBlob.h Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Enums.cpp Fix references to CACHE_REVISION in DiscIO comments 2017-06-27 21:32:14 +02:00
Enums.h Fix references to CACHE_REVISION in DiscIO comments 2017-06-27 21:32:14 +02:00
FileBlob.cpp Don't create new IOFiles when creating a blob 2017-01-11 13:23:23 +01:00
FileBlob.h Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Filesystem.cpp Filesystem: Make destructors = default 2017-06-14 15:26:04 +02:00
Filesystem.h Filesystem: Make destructors = default 2017-06-14 15:26:04 +02:00
FileSystemGCWii.cpp FileSystemGCWii: Use case insensitive comparison in FindFileInfo 2017-06-24 14:06:31 +02:00
FileSystemGCWii.h Filesystem: Modernize variable names 2017-06-14 15:25:09 +02:00
NANDContentLoader.cpp FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
NANDContentLoader.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
NANDImporter.cpp NANDImporter: Improve certificate extraction 2017-06-19 01:23:58 -06:00
NANDImporter.h NANDImporter: Improve certificate extraction 2017-06-19 01:23:58 -06:00
TGCBlob.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
TGCBlob.h Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Volume.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Volume.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
VolumeDirectory.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
VolumeDirectory.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
VolumeGC.cpp Filesystem: Replace GetFileList() 2017-06-14 15:23:48 +02:00
VolumeGC.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
VolumeWad.cpp DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
VolumeWad.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
VolumeWii.cpp IOS: Use a std::array for the title key instead of vector 2017-06-27 00:01:20 +02:00
VolumeWii.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00
WbfsBlob.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
WbfsBlob.h Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
WiiWad.cpp FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
WiiWad.h DiscIO: Remove C/I/S prefixes from class names 2017-06-06 12:31:59 +02:00