summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-01-03Add the fmt library (#4065)peterbell101-7/+10
* 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.
2016-02-05Bulk clearing of whitespaceLogicParrot1-25/+25
2015-09-26Extended and fixed the cFile API.Mattes D1-37/+38
2015-07-31Moved AString reading hack to cFile.Mattes D1-4/+7
2015-05-19Properly fix cFile Warningstycho1-4/+4
2015-05-19Fixed a lot of warningstycho1-3/+3
2015-05-09More style checking.Mattes D1-1/+1
Spaces around some operators are checked.
2015-04-30Fixed bindings for cFile:ReadWholeFile().Mattes D1-1/+6
Fixes #1914
2015-04-11Added more cFile API functions.Mattes D1-0/+12
GetLastModificationTime, GetPathSeparator() and GetExecutableExt()
2015-04-06Added cFile:ChangeFileExt() function.Mattes D1-0/+4
2015-01-27Removed cFile::ReplaceFileNameInvalidChars().Mattes D1-3/+0
Its only usage in cProtocol18 has been changed to a simple string replace - only the IPv6's colons were causing problems.
2015-01-27cFile: Added ReplaceFileNameInvalidChars().Mattes D1-0/+3
2014-08-12Fixed windows compilation and style issues.madmaxoft1-4/+4
2014-08-10First Implementatation of new Loggin frameworkTycho1-1/+2
2014-04-28Template MagicTycho1-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.
2014-03-14Fixed xofts issuesTycho1-1/+1
2014-03-11Added macros to follow format string checking through wrappersTycho1-1/+1
2014-01-25Added cFile::Flush().madmaxoft1-20/+25
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.
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-23Added cFile:ReadWholeFile() to Lua API.madmaxoft1-0/+3
2013-11-22Added cFile:GetFolderContents().madmaxoft1-0/+3
Fix 162.
2013-10-09APIDump: Documented the new cFile API functions.madmaxoft1-2/+2
2013-10-09Moved cMakeDir::MakeDir to cFile::CreateFolder.madmaxoft1-0/+3
And exported to Lua.
2013-10-09Added static cFile functions to Lua API.madmaxoft1-1/+19
2013-09-18Proper folder / file distinction in plugin loading.madmaxoft1-0/+3
2013-05-01File: Added file rename and deletion functionsmadmaxoft@gmail.com1-0/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1436 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-07Added a cGZipFile class for reading GZipped files.madmaxoft@gmail.com1-11/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1196 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Extended the cFile interface with Printf()madmaxoft@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@901 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-25Sockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247)madmaxoft@gmail.com1-0/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@891 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: OSSupport-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@885 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-03Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type.madmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@711 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-108/+108
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-23Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers)madmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-13Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com1-1/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-02-01sprintf() begone! Replaced with StringUtils' Printf()madmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@216 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-30Replaced most FILE operations with a cFile objectmadmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@196 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-30Initial cFile implementation (using stdio FILE) and test in cChunkMapmadmaxoft@gmail.com1-0/+99
git-svn-id: http://mc-server.googlecode.com/svn/trunk@192 0a769ca7-a7f5-676a-18bf-c427514a06d6