aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
AgeCommit message (Collapse)Author
2019-09-15Revert "COMMON: Implement FSNode::createDirectoryRecursive()"Cameron Cawley
This reverts commit aca627bec7b407790d78a64df984344ff454c15b.
2019-08-11COMMON: Implement FSNode::createDirectoryRecursive()Cameron Cawley
2019-08-06BACKENDS: Rename and simplify AbstractFSNode::create()Cameron Cawley
2019-06-01COMMON: Fix a memory leak in Common::DumpFileBastien Bouclet
2019-05-12COMMON: Fix seek return values, memory stream use in create_titanicPaul Gilbert
2019-05-12COMMON: Changed DumpFile & StdIOStream to derive from SeekableWriteStreamPaul Gilbert
2018-05-10COMMON: Use nullptr instead of NULL or 0 where appropriateBastien Bouclet
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Fix saves syncAlexander Tkachev
Tested that on actual unix system and found out a few minor bugs related to paths.
2016-08-24CLOUD: Make download() create necessary directoriesAlexander Tkachev
DumpFile::open() with createPath=true create would create the missing directories from the path before opening a file. Thus, one can easily create a file and avoid "can't open a file" error.
2016-08-04COMMON: Add WriteStream::pos()Alexander Tkachev
It returns int32, because some complex streams are derived from both WriteStream and ReadStream, and in ReadStream pos() returns int32, because -1 means an error. I had to change MemoryStream's uint32 to int32, which is probably not so good.
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2013-01-26JANITORIAL: Enforce "} // End of namespace" with a single space after }.Johannes Schickel
2011-08-07COMMON: Remove superfluous Common:: qualifiers.Christoph Mallon
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2010-06-15Hid hashed fileopening to debuglevel 8.Eugene Sandulenko
svn-id: r49705
2009-09-23Got rid of Common::File::addDefaultDirectory, instead implemented the ↵Johannes Schickel
solution proposed in "Case agnostic handling for directories (and files)" on -devel. svn-id: r44266
2009-07-29Removed redundant File::ioFailed() implementation; also turned ↵Max Horn
ReadStream::ioFailed from a virtual into an inline method svn-id: r42911
2009-07-29Removed last traces of clearIOFailed. Yay :)Max Horn
svn-id: r42910
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2009-02-22Changed Common::File and FSDirectory to invoke FSNode::exists a few times ↵Max Horn
less, reducing overhead svn-id: r38780
2009-01-30do not include common/debug.h from common/util.hMax Horn
svn-id: r36143
2009-01-23Renamed Archive::openFile to createReadStreamForMemberMax Horn
svn-id: r36021
2009-01-23Renamed FSNode::openForReading / openForWriting to createReadStream / ↵Max Horn
createWriteStream, again to make ownership of the returned stream clear svn-id: r36014
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-10-27Fix for bug #2198456 "FS: Cannot add a subfolder to a non-existing folder".Johannes Schickel
svn-id: r34857
2008-10-22Removed File::addDefaultDirectoryRecursive, tweaked SearchMan API slightlyMax Horn
svn-id: r34836
2008-10-02Renamed FilesystemNode -> FSNodeMax Horn
svn-id: r34716
2008-09-30Added multiple new open() methods to Common::File, which make it possible to ↵Max Horn
use this class as a generic convenience wrapper around all kinds of SeekableReadStream; also renamed the name() method to the less confusing getName() svn-id: r34696
2008-09-29File::open no longer falls back to searching the current dir (if this causes ↵Max Horn
any regressions, please report them; don't work around them, don't revert this change, without discussing it first) svn-id: r34680
2008-09-27Changed Common::File to use SearchManMax Horn
svn-id: r34663
2008-09-15Corrected and shortened some file opening related warningsMax Horn
svn-id: r34556
2008-09-14Big patch changing semantics of ReadStream::eos():Willem Jan Palenstijn
eos() now only returns true _after_ trying to read past the end of the stream. This has a large potential for regressions. Please test! svn-id: r34549
2008-09-13Big patch changing the signature of various Stream methods (some ports may ↵Max Horn
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514
2008-09-08Switched File::open, File::addDefaultDirectory to use a SearchSet ↵Max Horn
internally. Code is a lot shorter & simpler now, far less failing fopen calls (good for NDS and other ports); drawback: regressions :). Good bug hunting to everybody svn-id: r34444
2008-09-07Made File::addDefaultDirectory(Recursive) ignore FSNodes which are not dirs ↵Max Horn
/ are invalid, instead of erroring out svn-id: r34430
2008-09-06Removed last traces of fopen / FILE from common/file.cppMax Horn
svn-id: r34393
2008-09-06Switched class File & DumpFile to use StdioStream internallyMax Horn
svn-id: r34391
2008-09-05Updated filehandling for Symbian OSLars Persson
svn-id: r34346
2008-09-05Ported AMIGA specific file buffering 'hack' from class File to StdioStreamMax Horn
svn-id: r34345
2008-09-05Updated Symbian OS file actions with ferror and fflush.Lars Persson
svn-id: r34340
2008-09-03Moved StdioStream to its own files inside backendsMax Horn
svn-id: r34303
2008-09-03Added new StdioStream class, a thin wrapper around FILEMax Horn
svn-id: r34300
2008-08-04Modified DumpFile::open to accept non-existing nodes, and to actually open ↵Max Horn
files in write mode -- d'oh svn-id: r33609
2008-08-04Moved the OutSaveFile::finalize method to WriteStream; implemented ↵Max Horn
DumpFile::flush() svn-id: r33604
2008-08-03Implemented DumpFile::open(FSNode)Max Horn
svn-id: r33586
2008-07-29Changed class File (and derived classes) to only support read-only access; ↵Max Horn
added a new class DumpFile for writing svn-id: r33412
2008-07-20Two new TODO/FIXME comments for class FileMax Horn
svn-id: r33138
2008-06-11No need to specify CaseSensitiveString_Hash explicitly anymoreMax Horn
svn-id: r32663