Max Horn
c7df3e2f7a
Applied part of patch #2684986
...
svn-id: r39398
2009-03-14 17:07:07 +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
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
c7fde102e3
Renamed FilesystemNode -> FSNode
...
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
468b387b97
Patch #2043093 (again - new patch): OS/2 patches for posix-fs
...
svn-id: r34595
2008-09-17 18:26:44 +00:00
Max Horn
14ac01a11a
Simplify check for a slash in the string *g*
...
svn-id: r34485
2008-09-11 09:25:13 +00:00
Max Horn
e994723e7c
Some tweaks to help (?) OS/2
...
svn-id: r34368
2008-09-05 20:42:41 +00:00
Max Horn
196ce8eb98
POSIX FSNode: got rid of Double-slashes in paths for childs of the root; simplified code
...
svn-id: r34307
2008-09-03 14:55:19 +00:00
Max Horn
7f18aaf8ec
Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends
...
svn-id: r34304
2008-09-03 12:56:46 +00:00
Max Horn
320a5dc99f
Moved StdioStream to its own files inside backends
...
svn-id: r34303
2008-09-03 11:49:02 +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
c752e5fcfa
Modified POSIX FSNode implementation to use Common::normalizePath & Common::lastPathComponent; added a TODO regarding relative paths
...
svn-id: r34283
2008-09-02 15:19:31 +00:00
Max Horn
cb21c25e41
FSNode code: Merged most versions of lastPathComponent() into one new AbstractFilesystemNode::lastPathComponent() method, with customizable path separator character
...
svn-id: r34197
2008-08-27 20:31:22 +00:00
Max Horn
5860aa45b7
Slightly modified form of patch #2043093 : OS/2 patches for posix-fs
...
svn-id: r34193
2008-08-27 18:38:06 +00:00
Max Horn
b727ac880d
Turned Windows, AmigaOS and POSIX FSFactories into plain classes; no need for them to be singletons (actually true for all other FS factories)
...
svn-id: r34098
2008-08-22 11:36:47 +00:00
Max Horn
74238bb53a
Moved POSIXFilesystemNode class declaration to a new header file, to enable subclassing
...
svn-id: r34097
2008-08-22 11:19:41 +00:00
Max Horn
01f07b5e21
cleanup
...
svn-id: r33587
2008-08-03 18:29:37 +00:00
Max Horn
5c99d45d9f
Don't #include the FS factory implementations in common/system.cpp; rather, rely on the build system to include them
...
svn-id: r30957
2008-02-24 23:14:04 +00:00
Max Horn
80d55b0388
Renamed AbstractFilesystemFactory to FilesystemFactory
...
svn-id: r30935
2008-02-23 19:01:12 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
fa1052e1b2
Removed obsolete comment
...
svn-id: r29992
2007-12-25 23:16:52 +00:00
Max Horn
66a1c085c0
Expand ~/ to the HOME env var (see also patch #1846545 )
...
svn-id: r29797
2007-12-09 17:28:29 +00:00
David Corrales
aba30d7ea8
Commit of patch #1804861 . It implements a static lastPathComponent() function in each backend, used to extract the last path component of a given path, returned by getName().
...
svn-id: r29159
2007-10-07 00:28:38 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
ab8997f64d
Fix linker issues when doing a plugin build, and (hopefully) also on Windows
...
svn-id: r28950
2007-09-18 21:34:57 +00:00
Max Horn
3abc11611e
Code formatting fixes
...
svn-id: r28945
2007-09-18 20:16:33 +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
1400d28bfb
Initial commit of the new BaseFile implementation. It provides a common ground for file objects across platforms and divides responsibilities between the Common::File class and a base file implementation.
...
Also rearranged the factories into a new directory for clarity.
Note 1: The posix-file.h and cpp files are for testing only. Only the ds, ps2 and symbian architecture will use special BaseFile based objects.
Note 2: The current code does not yet make use of this new structure, since the Common::File remains intact.
svn-id: r28395
2007-08-01 22:07:50 +00:00
David Corrales
b95b3fe4f3
Fixed a subtle bug when browsing directories in the main game chooser.
...
svn-id: r28149
2007-07-19 20:21:47 +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
fedfe66831
Added stubs for the exists(), isReadable() and isWritable() methods for all architectures.
...
svn-id: r27087
2007-06-04 22:02:35 +00:00
David Corrales
3e7c5b027e
Added a missing include in non-POSIX factories.
...
For the POSIX and Windows architectures, added exists(), isReadable() and isWritable()
svn-id: r27073
2007-06-04 03:46:56 +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
3646c968c9
Merged the fs branch with trunk. r26472:26948
...
svn-id: r26949
2007-05-26 20:23:24 +00:00
David Corrales
d1f56d93f9
Use common/singleton.h in the concrete fs factories.
...
svn-id: r26814
2007-05-12 20:00:52 +00:00
David Corrales
86324f00bc
Renamed files and minor tweaks. Thanks LordHoto :)
...
svn-id: r26810
2007-05-12 18:17:40 +00:00
David Corrales
c459f054b4
Use abstract factories to initialize FilesystemNode objects.
...
svn-id: r26739
2007-05-03 02:39:33 +00:00
Oystein Eftevaag
69daf49a73
Don't strip the first character of the filename when FilesystemNode is instantiated with just the filename and no path.
...
svn-id: r23763
2006-08-26 19:16:15 +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
Marcus Comstedt
51e1438020
Separated the Dreamcast filesystem backend from the POSIX one.
...
svn-id: r22883
2006-06-03 14:09:04 +00:00
Max Horn
3623a94927
Added the new AbstractFilesystemNode::getCurrentDirectory() method. Also changed the semantics of the FilesystemNode constructors (see also the relevant doxygen comments for explanations). This also fixes bug #1485941 .
...
svn-id: r22424
2006-05-12 21:41:54 +00:00
Torbjörn Andersson
30c0bd63bc
Fixed bug #1483450 . Apparently, S_ISDIR() is undefined if stat() fails. The
...
change to the POSIXFilesystemNode constructor is the one that matters to this
bug. The changes to listDir() are made from paranoia.
svn-id: r22382
2006-05-08 04:48:40 +00:00
Max Horn
d016c353c5
Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
...
svn-id: r22315
2006-05-03 20:43:26 +00:00
Max Horn
fea36d0112
Disabled evil getcwd hack in POSIXFilesystemNode
...
svn-id: r22302
2006-05-03 11:36:07 +00:00