summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-1/+1
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Add the fmt library (#4065)peterbell102018-01-031-6/+2
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Removed unnecessary check for lower and upper folderLukas Pioch2017-03-161-6/+0
|
* Use CMake's Android generators to crosscompileTiger Wang2016-12-121-1/+5
|
* Removed "." and ".." from cFile:GetFolderContents(). (#3301)Mattes D2016-08-071-0/+14
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-21/+21
|
* Moved variables into scope, removed unused variables and fixed variablesLukas Pioch2015-12-171-1/+1
|
* Changed for-loop iterator in File.cpp to a reference type to reduce object copying and fix the clang build.bibo382015-10-301-1/+1
| | | | Fixes #2580
* Extended and fixed the cFile API.Mattes D2015-09-261-58/+148
|
* Moved AString reading hack to cFile.Mattes D2015-07-311-4/+25
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-5/+5
|
* Finish fixing windowstycho2015-05-191-2/+2
|
* Properly fix cFile Warningstycho2015-05-191-7/+7
|
* Fixed a lot of warningstycho2015-05-191-7/+19
|
* cFile:ChangeFileExt now accepts extensions with leading dot, too.Mattes D2015-04-111-2/+14
|
* Added more cFile API functions.Mattes D2015-04-111-2/+54
| | | | GetLastModificationTime, GetPathSeparator() and GetExecutableExt()
* Added proper implementation of cFile::ChangeFileExt().Mattes D2015-04-101-2/+17
|
* Added cFile:ChangeFileExt() function.Mattes D2015-04-061-0/+23
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-11/+11
|
* OSSupport: Fixed UNICODE Windows builds.Mattes D2014-09-141-7/+7
| | | | The files now compile even inside UNICODE applications.
* Removed an unneeded cast.madmaxoft2014-08-151-1/+1
|
* First Implementatation of new Loggin frameworkTycho2014-08-101-2/+3
|
* Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed cFile compilation under MinGW.madmaxoft2014-06-301-0/+3
|
* Open files in shared mode on windows, so that other tools may read them.madmaxoft2014-05-021-2/+2
| | | | This was the behavior before fopen_s() was used for implementation; unlike fopen(), fopen_s() opens the file in exclusive mode.
* Template MagicTycho2014-04-281-2/+2
| | | | | | Removed need to allocate a fake meta block by using templates to provide a version of the code that does not use metas. Also changed the function to a template argument to make sure that the compilier is able to inline it.
* Fixed mobs that don't naturally spawn.archshift2014-04-261-5/+5
|
* More cFile warning fixes.madmaxoft2014-04-011-1/+1
|
* Fixed clang warnings in cFile.madmaxoft2014-04-011-10/+10
| | | | We only support 32-bit filesizes (files < 2 GiB).
* Fixed #491Tiger Wang2014-02-031-2/+14
|
* Added cFile::Flush().madmaxoft2014-01-251-0/+9
| | | | This is useful when using cFile as a log file and we know the server may crash after a specific write, so we flush the file before continuing.
* Another VarArgs fix.madmaxoft2014-01-161-4/+2
| | | | This time using va_copy() on platforms that have it and simple assignment on platforms that don't.
* Using a 2nd argument instead of va_copy().madmaxoft2014-01-151-2/+4
| | | | This seems to be the only reasonable C++03-only solution.
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-261-4/+5
| | | | | Conflicts: VC2008/MCServer.vcproj
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-0/+76
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+375