aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
AgeCommit message (Collapse)Author
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
2008-04-07Fix a recent regression reported in bug #1937042: "FEEBLE: Capitalization Eugene Sandulenko
variations when searching for files" svn-id: r31445
2008-03-30Removed char &operator [] from class String -- it had the potential to wreak ↵Max Horn
havoc when used on shared strings (thanks to tramboi for pointing this out) svn-id: r31334
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2008-01-18Use explicit path in #include statement (DS port specific)Max Horn
svn-id: r30552
2007-11-13Initial commit of the iPhone/iPod Touch backendOystein Eftevaag
svn-id: r29488
2007-11-11Committed patch #1829748 "Fix for memory leaks in File::exists".Johannes Schickel
svn-id: r29474
2007-11-02Removed now obsolete workaroundsMax Horn
svn-id: r29375
2007-10-31Removed the Common::File::removeFile() methods, and moved their ↵David Corrales
implementation to the Common::DefaultSaveFileManager::removeSavefile() method, as per Marcus' appraisal and Max's approval. svn-id: r29337
2007-10-28work around ce's lack of posix errnoKostas Nakos
svn-id: r29298
2007-10-16Make the exists() method take into account default directories. This makes ↵David Corrales
the method more robust, since previously it checked absolute paths only. svn-id: r29227
2007-10-13Added extra includes for the DS port now that stdafx.h is no longer includedNeil Millstone
svn-id: r29205
2007-10-03Provide dummy remove() function for DC...Marcus Comstedt
svn-id: r29152
2007-09-21Rename file removal functions, to avoid conflicts. Add save game path, when ↵Travis Howell
removing files via SaveFileManager. svn-id: r29001
2007-09-18More comment fixing :PSven Hesse
svn-id: r28957
2007-09-18Fixed a typo. (Thanks to our Doctor for spotting it)Johannes Schickel
svn-id: r28956
2007-09-18Clarified the FIXME in Common::File::exists a bit.Johannes Schickel
svn-id: r28954
2007-09-18Fixes Common::File::exists. Please see the added FIXME comment about the ↵Johannes Schickel
real problem. svn-id: r28952
2007-09-18Fix some warningsMax Horn
svn-id: r28947
2007-09-18Code formatting fixesMax Horn
svn-id: r28945
2007-09-18Patch #1768757: Merge fsnode-gsoc into trunk (MAJOR change, will break ↵Max Horn
compilation on some ports) svn-id: r28944
2007-08-18Merged some of the changes from the trunk patch back in to the GSoC fsnode ↵David Corrales
branch. svn-id: r28649
2007-07-20Added a remove() function to the Common::File class. Also changed the ↵David Corrales
exists() function to account for new capabilities in the FSNode layer. svn-id: r28150
2007-06-16Small bugfix. Wrong logical operator.David Corrales
svn-id: r27474
2007-06-16Removed the isValid operation from the FilesystemNode class in favor of the ↵David Corrales
much richer combinations possible with the new operations (exists, isReadable and isWritable). The work on the Common::File class is far from complete. Only the necessary was updated. svn-id: r27473
2007-06-05Renamed methods in the FilesystemNode class to match the AbstractFSNode ↵David Corrales
implementations. Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode. svn-id: r27113
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-04-06Updating DS port for changes in main codebase. Code changes for DevkitArm ↵Neil Millstone
r20 and latest libnds. svn-id: r26394
2007-03-11Added shared filed support using native file APIs.Lars Persson
svn-id: r26087
2007-03-08Moved the printf #define for the NDS into scummsys.h (not sure if that suits ↵Max Horn
your needs Neil, feel free to change it again if necessary) svn-id: r26024
2007-03-08common/util.cpp needs fprintf; various std I/O functions are not used by ↵Max Horn
anything in our code, so there is no need to emulate them -- mark these; my previous commits likely broke compilation of the DS backend, try to reduce the brokeness a bit svn-id: r26023
2007-03-08Moving Nintendo DS std C I/O emulation wrappers to common/file.cpp; also add ↵Max Horn
a FIXME comment (why is assert redefined in ds-fs.h ?) svn-id: r26020
2007-03-08Changed File::_handle to be of type void* instead of FILE* (to ease ↵Max Horn
porting); moved PS2 std C I/O defines to file.cpp (no code other than the file & savegame code should use fopen etc. directly) svn-id: r26017
2007-03-01Removed File::incRef and decRefMax Horn
svn-id: r25920
2006-10-14RevertTravis Howell
svn-id: r24303
2006-10-14Fix introduction of WWTravis Howell
svn-id: r24302
2006-07-30Added explicit string equals/hash functors to a new header ↵Max Horn
common/hash-str.h; removed Hash functor specialization for String and char pointers; changed all code using hashmaps with string keys to explicitly specify whether they honor or ignore case svn-id: r23634
2006-07-22Added isValid to FilesystemNode and AbstractFilesystemNode. See my mail to ↵Johannes Schickel
-devel for more information. svn-id: r23567
2006-07-22Using FilesystemNode::name instead of FilesystemNode::displayName in the ↵Johannes Schickel
fileclass too, then again this doesn't *have* to work. (check FilesystemNode documentation) svn-id: r23562
2006-06-24Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cppMax Horn
Rationale: backend implementations belong to backends/, but portable APIs meant to be used by high level code is for common / sound / graphics / ... (compare also with backends/midi vs. sound/mididrv.h) svn-id: r23274
2006-06-16Remove _name.clear(); from Close since same File instance is re-opened by ↵Lars Persson
Symbian using that filename. svn-id: r23152
2006-06-11Applied the patch included in bug rep [ 1503716 ] Leak in File::Open (on OS ↵Oystein Eftevaag
X) and unzOpen (on all) svn-id: r23019
2006-05-13Fix for bug #1483213Max Horn
svn-id: r22461
2006-05-03Removed FilesystemNode::isValid (leaving it up to the porters to decide ↵Max Horn
whether to remove their isValid code or not) svn-id: r22317