dolphin/Source/Core/Core/Boot
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
..
Boot_BS2Emu.cpp Add CommonTitles.h for common Wii title IDs 2017-06-26 15:17:55 +02:00
Boot_WiiWAD.cpp Add CommonTitles.h for common Wii title IDs 2017-06-26 15:17:55 +02:00
Boot.cpp FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
Boot.h Boot: Make BootExecutableReader constructors explicit 2017-06-06 22:54:25 -04:00
DolReader.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
DolReader.h DolReader: Make constructors explicit 2017-06-06 23:03:59 -04:00
ElfReader.cpp ElfReader: default the destructor 2017-06-06 23:03:59 -04:00
ElfReader.h ElfReader: default the destructor 2017-06-06 23:03:59 -04:00
ElfTypes.h specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00