Commit Graph

11 Commits

Author SHA1 Message Date
Jamie Dale
cfc4051acf Added functions to access low-level file stat data as a single file-system request
You can now use GetStatData to get all of the stat data for a file (its timestamps, size, read-only state, and type (file or directory)) in a single file-system request. Depending on the platform, this can be much more efficient than making multiple requests.

This change also adds alternate directory iteration functions (IterateDirectoryStat and IterateDirectoryStatRecursive) for when you need the stat data along with the files/directories on disk. For platforms that provide this stat data as part of the low-level directory iteration (such as Windows), this can yield much better performance than making two separate file-system requests. Platforms that do not provide this information as part of the directory iteration will just perform a stat request while iterating.

#platformnotify Josh.Adams

[CL 2634161 by Jamie Dale in Main branch]
2015-07-27 13:52:55 -04:00
Dmitry Rekman
7a367ae37f Make OpenRead() aware about intended sharing mode of the file.
- Currently essential on Windows only; other platforms may make use of this when managing file handles.

#codereview Eric.Newman, Robert.Manuszewski, Josh.Adams, Michael.Trepka, Chris.Babcock, Marcus.Wassmer, Peter.Sauerbrei

[CL 2480709 by Dmitry Rekman in Main branch]
2015-03-16 17:14:06 -04:00
Graeme Thornton
b7f66f40b8 Change many string replace/compare/find operations which use a fixed case search pattern to be case sensitive. This avoids unnecessary expensive string case operations when searching for things like dots and slashes.
[CL 2425834 by Graeme Thornton in Main branch]
2015-01-30 10:52:42 -05:00
Jaroslaw Surowiec
9e9aea3c03 Core - More stats for memory profiling
[CL 2422024 by Jaroslaw Surowiec in Main branch]
2015-01-28 08:29:52 -05:00
Robert Manuszewski
d8c9b406b5 Fixing FSandboxVisitor not working properly with game projects not directly under UE4 root folder.
[CL 2417036 by Robert Manuszewski in Main branch]
2015-01-23 13:31:31 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Robert Manuszewski
55f4bd6581 Removed [URL] GameName=Name from ini as we no longer need it for anything else than fixing the game name case (passed from command line)
#change Removed GGameName usage from code and replaced it with FApp::*GameName API
#change Added FApp::SetGameName(), FApp::IsGameNameEmpty()
#change Added IFileManager::GetFilenameOnDisk to get the correct case of a filename on disk
#change Renamed GGameName to GInternalGameName

[CL 2328446 by Robert Manuszewski in Main branch]
2014-10-14 10:31:43 -04:00
Jaroslaw Palczynski
ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00
Robert Manuszewski
4edabc87d7 Fixing sanbox wrapper not looking for cooked data in the right directory.
[CL 2084787 by Robert Manuszewski in Main branch]
2014-05-29 16:58:25 -04:00
Robert Manuszewski
fd39e788ca Shortening Cook sandbox path from Game\\Saved\\Sandboxes\\Cooked-Platform to Game\\Saved\\Cooked\\Platform
[CL 2082933 by Robert Manuszewski in Main branch]
2014-05-29 16:43:14 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00