dolphin/Source
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
..
Android Boot: Clean up the boot code 2017-06-06 16:27:52 +02:00
Core FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
DSPSpy Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DSPTool Move DSP::CodesToHeader to DSPTool 2017-06-05 19:28:40 -07:00
PCH msvc: bump the required _MSC_FULL_VER 2017-06-03 18:20:41 -07:00
UnitTests Remove OpenAL DLL from Externals 2017-06-27 00:06:14 -07:00
VSProps Only build OpenAL on Windows 2017-06-27 00:06:14 -07:00
.clang-format clang-format: Sort windows.h before other headers 2017-01-23 00:35:09 -08:00
CMakeLists.txt Common: Add a std::optional implementation 2017-06-03 12:36:24 +02:00
dolphin-emu.sln msbuild: put pugixml in Externals solution filter; fix project reference. 2017-06-15 19:06:16 -07:00