Commit Graph

47 Commits

Author SHA1 Message Date
Johannes Schickel
54f5c95832 COMMON: Make FSNode(AbstractFSNode *) private again.
This also fixes a memory leak in OSystem_iOS7::addSysArchivesToSearchSet.
2016-01-07 11:25:02 +01:00
Vincent Bénony
73385584ba IOS: Adds a warning 2016-01-06 16:20:30 +01:00
Vincent Bénony
e0bfdb41d0 IOS: Formatting 2016-01-06 16:20:30 +01:00
Vincent Bénony
108ce38443 IOS: Added a chroot like filesystem
This is needed because it is not possible to keep absolute paths to the iOS document directory, because a part of its name change between each installation / update.
2016-01-06 15:35:17 +01:00
Johannes Schickel
854e22b38b COMMON: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Andrea Corna
a6ec4f70da COMMON: Make more members of Archive constant. 2011-12-13 17:55:57 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
0a13162073 cleanup
svn-id: r48041
2010-02-13 11:57:01 +00:00
Willem Jan Palenstijn
6e38259270 Add a 'flat' option to FSDirectory to allow searching recursively for files in subdirectories
svn-id: r41090
2009-06-01 00:01:32 +00:00
Max Horn
9b45dd2849 Modified FSDirectory::lookupCache to return a FSNode *pointer*, so that we can distinguish between lookup failures and invalid cache entries. Also changed SearchSet::createReadStreamForMember to not use hasFile anymore, based on the assumption that any Archive::createReadStreamForMember implementation has to verify whether the member name is valid anyway (clarified the doxygen docs accordingly)
svn-id: r38787
2009-02-22 16:48:02 +00:00
Willem Jan Palenstijn
f23b6f91b7 typo
svn-id: r38440
2009-02-17 19:54:11 +00:00
Max Horn
14c5bbbccf Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
9861afd8fd Renamed ArchiveMember::open -> createReadStream, and made it a cv member (const); same for Archive::openFile
svn-id: r36020
2009-01-23 04:36:18 +00:00
Max Horn
8f16458e9b Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
svn-id: r36014
2009-01-23 03:41:36 +00:00
Johannes Schickel
cd952a7c27 Whoops it seems the comment used "backslashes" instead of "slashes" in other places too.
svn-id: r35949
2009-01-20 12:44:44 +00:00
Johannes Schickel
c0cd121ffd Fixed typo in comment.
svn-id: r35948
2009-01-20 12:37:05 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
87a2747744 Turned FSNode into a ArchiveMember subclass; removed the now obsolete FSDirectoryMember; moved FSDirectory from common/archive.h to common/fs.h
svn-id: r35578
2008-12-27 18:03:27 +00:00
Max Horn
44d37a14a9 Removed FSNode::lookupFile
svn-id: r35142
2008-11-21 19:14:23 +00:00
Max Horn
c7fde102e3 Renamed FilesystemNode -> FSNode
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
19dd03dfa8 Remove obsolete note about fopen
svn-id: r34487
2008-09-11 09:28:14 +00:00
Max Horn
abffd3b3ab Allow invoking FilesystemNode::getChild on non-dir nodes, by returning an invalid node in that case
svn-id: r34429
2008-09-07 21:47:01 +00:00
Max Horn
1cecbebc49 Switched class File & DumpFile to use StdioStream internally
svn-id: r34391
2008-09-06 20:49:48 +00:00
Max Horn
531bcf847c Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
svn-id: r34302
2008-09-03 11:22:51 +00:00
Max Horn
3dc066e983 Change FilesystemNode::getChild to new desired behavior: namely, that it should return valid nodes even for names for which no child exists (yet?) -- mail to scummvm-devel pending
svn-id: r34284
2008-09-02 16:35:16 +00:00
Max Horn
4d5df949c7 FilesystemNode code: some comment cleanup; added FilesystemNode::openForReading() and openForWriting() methods (for now these are simple wrappers around Common::File)
svn-id: r33590
2008-08-03 18:35:51 +00:00
Max Horn
dbe38029db Changed FilesystemNode to use a SharedPtr instead of implementing its own ref counting
svn-id: r31303
2008-03-29 21:12:36 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
223f22c773 Reworked FilesystemNode::lookupFile (fixing doxygen comment, making it possible to restrict the search depth, fixed the 'exhaustive' mode and some other tweaks)
svn-id: r30644
2008-01-26 19:25:04 +00:00
Johannes Schickel
bfb7a7e7e6 Don't allow implicit conversion from Common::String to Common::FilesystemNode.
svn-id: r30199
2008-01-03 14:51:50 +00:00
David Corrales
ec38b85a44 Committing the set of patches #1814434, thanks to jvprat. They improve the documentation and parameter naming of the lookFile methods inside Common::FS.
svn-id: r29228
2007-10-16 20:24:39 +00:00
Max Horn
c3d3aebe87 Patch #1768757: Merge fsnode-gsoc into trunk (MAJOR change, will break compilation on some ports)
svn-id: r28944
2007-09-18 20:02:04 +00:00
David Corrales
1dc13a641d Merged some of the changes from the trunk patch back in to the GSoC fsnode branch.
svn-id: r28649
2007-08-18 05:24:18 +00:00
David Corrales
0ac96302fe Initial implementation of the lookupFile() function. It's meant to search recursively for given
filename within a set of directories.

svn-id: r27551
2007-06-20 00:28:04 +00:00
David Corrales
8ebf479bc5 Added a new parameter to the getChildren function, which allows including hidden files in the results.
svn-id: r27514
2007-06-17 17:17:38 +00:00
David Corrales
f7ea7e666d Removed the isValid operation from the FilesystemNode class in favor of the 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-16 17:31:36 +00:00
David Corrales
3b96c7fad5 Renamed methods in the FilesystemNode class to match the AbstractFSNode implementations.
Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode.

svn-id: r27113
2007-06-05 21:02:35 +00:00
David Corrales
716bcd0b2b Expose new fs backend methods in the FilesystemNode class.
svn-id: r27089
2007-06-04 22:16:17 +00:00
David Corrales
0cab5b7791 Merged the fs branch with trunk. r26949:27031
svn-id: r27032
2007-05-31 23:44:43 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
David Corrales
c459f054b4 Use abstract factories to initialize FilesystemNode objects.
svn-id: r26739
2007-05-03 02:39:33 +00:00
Max Horn
f02802531e Turning FilesystemNode comment into a doxygen comment
svn-id: r26015
2007-03-08 15:02:13 +00:00
Max Horn
73c3625f1f Fixing various doxygen warnings
svn-id: r25362
2007-02-03 21:37:52 +00:00
Johannes Schickel
63aec29edb Added isValid to FilesystemNode and AbstractFilesystemNode. See my mail to -devel for more information.
svn-id: r23567
2006-07-22 17:01:50 +00:00
Max Horn
6ed00cd055 Added FilesystemNode::name method
svn-id: r23553
2006-07-22 14:14:16 +00:00
Max Horn
d210b19aec Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cpp
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-24 08:07:48 +00:00