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
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
Max Horn
9c1fc02328
Got rid of AbstractFilesystemNode::wrap (begone, evil hack)
...
svn-id: r22300
2006-05-03 11:13:21 +00:00
Max Horn
8c452daac2
Moved static methods getRoot / getNodeForPath from class FilesystemNode to class AbstractFilesystemNode
...
svn-id: r22298
2006-05-03 10:19:05 +00:00
Max Horn
d404b6150a
Started to separate AbstractFilesystemNode from FilesystemNode
...
svn-id: r22297
2006-05-03 10:14:05 +00:00
Marcus Comstedt
5468059d44
Removed compilation error.
...
svn-id: r22282
2006-05-02 22:27:24 +00:00
Max Horn
8300d1d2a9
Added new AbstractFilesystemNode::child() resp. FilesystemNode::getChild() methods
...
svn-id: r22249
2006-04-30 22:52:10 +00:00
Max Horn
307f4e387b
Fixed getNodeForPath on systems using POSIXFilesystemNode to again correctly check whether the given path exists, and whether it points to a directory
...
svn-id: r22097
2006-04-23 12:29:43 +00:00
Max Horn
8271273cb5
Fallback to using stat() if readdir returns DT_UNKNOWN (replacing the AMD64 hack)
...
svn-id: r21767
2006-04-10 19:26:40 +00:00
Johannes Schickel
df1bc871f1
Forces usage of SYSTEM_NOT_SUPPORTING_D_TYPE on amd64 systems. (read comment for more information)
...
svn-id: r21739
2006-04-09 23:30:16 +00:00
Max Horn
2d10d1960e
Use full path qualifiers in #include statements (exception: engines/ can be ommited, at least for now)
...
svn-id: r21620
2006-04-05 00:18:22 +00:00
Eugene Sandulenko
66d8b85463
Allow symlinks to directories for FS;es with D_TYPE support.
...
svn-id: r21616
2006-04-04 23:52:56 +00:00
Eugene Sandulenko
004a39b3af
Symlinks are also valid files
...
svn-id: r21615
2006-04-04 23:44:27 +00:00
Max Horn
ac9203415e
Some more FS code cleanup
...
svn-id: r21600
2006-04-04 21:03:17 +00:00
Max Horn
ebeded36a1
Added comment on why we use getcwd in POSIXFilesystemNode at all
...
svn-id: r21582
2006-04-03 22:06:42 +00:00
Max Horn
5595ec5680
Various changes to POSIXFilesystemNode:
...
- Removed pseudo copy constructor, use the automatically generated one instead.
- Do not always call stat() whenever creating a POSIXFilesystemNode from a path.
- Use lastPathComponent in POSIXFilesystemNode(path) constructor.
- Some further cleanup.
svn-id: r21580
2006-04-03 21:18:24 +00:00
Max Horn
cbb2ca005c
Change CVS keywords to SVN keywords
...
svn-id: r20535
2006-02-11 12:47:47 +00:00
Max Horn
0ad58cdb95
Removed .cvsignore files
...
svn-id: r20424
2006-02-07 22:50:14 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Eugene Sandulenko
b72df416a6
WIP of GP32 port. Now it is more correct port and compiles with current
...
CVS. Though it has some issues unresolved, one of them is that it crashes
right after splash screen without showing anything. Work in progress :)
svn-id: r17054
2005-03-09 22:21:57 +00:00
Max Horn
a1b058897d
Remove the OSX-restriction on FilesystemNode::getNodeForPath() for now (I don't like it, but until a proper solution is in place, it seems to be the best thing to do)
...
svn-id: r16743
2005-02-06 18:37:23 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
01cb15b9b2
Since we do ref counting on the nodes now, we can re-use the root nodes now
...
svn-id: r15851
2004-11-21 13:18:07 +00:00
Max Horn
5d9b35510d
Changed the FilesystemNode implementation to make it easier to use (client code doesn't have to worry about the memory managment anymore, it's all 'automatic' now). May have introduced a mem leak or two, please check :-)
...
svn-id: r15848
2004-11-20 21:35:49 +00:00
Max Horn
28f8f4d091
Added FilesystemNode::getNodeForPath, but right now only for Mac OS X
...
svn-id: r12692
2004-02-01 01:31:50 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Marcus Comstedt
e55370e08d
Use posix-fs on Dreamcast.
...
svn-id: r11112
2003-11-03 22:20:51 +00:00
Max Horn
de74ceb60a
fix bug where going up in the root dir would get you back to the (unix) current dir (instead of staying at the root)
...
svn-id: r10689
2003-10-08 22:47:41 +00:00
Max Horn
0e645f88ae
renamed namespace ScummVM to Common
...
svn-id: r10544
2003-10-02 17:43:02 +00:00
Max Horn
0042dd73ec
sys/types.h only needed on OS X to work non-POSIX compliance in system headers; use getcwd instead of getwd
...
svn-id: r6868
2003-03-26 21:17:14 +00:00
Oliver Kiehl
b3a20b29ba
get scummvm to compile on unix != macosx as well
...
svn-id: r6866
2003-03-26 17:12:56 +00:00
Max Horn
76548862f9
default to current directory (instead of FS root)
...
svn-id: r6858
2003-03-25 12:14:14 +00:00
Paweł Kołodziejski
aa3766018f
updated copyrights headers
...
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
a8c3057875
and more cleanup ....
...
svn-id: r6719
2003-03-06 18:30:44 +00:00
James Brown
18b97b28a5
Patch from ccr: Don't segfault if euid has no r/w perms on pwd
...
svn-id: r6183
2002-12-27 00:13:51 +00:00
Peter Moraliyski
c0c5fc274f
gp32 port stuff
...
svn-id: r5761
2002-11-30 16:03:46 +00:00
Max Horn
ce3cde15a0
added some preliminary game auto detect code to the launcher; this required a small change to the FS API, Windows/Morphos code will have to be adapted slightly I fear. Also, not all games are detected correctly, and some probably never will be, so we still have to add a dialog for cases where auto detect doesn't work
...
svn-id: r5600
2002-11-19 01:36:47 +00:00
Max Horn
fe313cea67
implemented parent() for POSIX fs code; added .cvsignore files
...
svn-id: r5571
2002-11-15 17:54:38 +00:00
Max Horn
e29c27ec27
use stat to detect directories -> should be POSIX compliant this time, and also work on Solaris
...
svn-id: r5568
2002-11-15 17:05:50 +00:00
Max Horn
73946c1c26
hide 'invisible' files
...
svn-id: r5550
2002-11-14 14:42:04 +00:00