dolphin/Source/Core
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
..
AudioCommon Swapped C-style arrays to std::array 2017-06-27 07:12:15 -03:00
Common FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
Core FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
DiscIO FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
DolphinNoGUI NoGUI: Fix a missing include for Xlib 2017-06-13 11:46:13 +02:00
DolphinQt2 Qt: Add menu item to perform online update 2017-06-28 11:23:08 +02:00
DolphinWX FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
InputCommon StringUtil: Make SplitString return by value 2017-06-11 16:48:20 +02:00
UICommon Move WiiUtils to Core 2017-06-28 11:22:10 +02:00
VideoBackends FramebufferManager: Fix EFB layers being attached to the wrong FBO. 2017-06-27 23:42:42 +02:00
VideoCommon FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
CMakeLists.txt