Commit Graph

63 Commits

Author SHA1 Message Date
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
Kostas Nakos
4524b49872 Initial commit of the wince-gcc re-port
svn-id: r24212
2006-10-08 18:15:18 +00:00
Johannes Schickel
d639ca97ce Oops. some systems are using '\\' instead of '/' fixing that now...
svn-id: r23797
2006-08-28 13:39:44 +00:00
Johannes Schickel
ac45e290f7 Fixing other FS backends to use the bug fixed version of the POSIX lastPathComponent too (also lets the Windows FS use the POSIX version of lastPathComponent too, since it's nicer than the fix I made)
svn-id: r23796
2006-08-28 13:34:15 +00:00
Johannes Schickel
d9cb390a7b Fixing the Windows FS code to not delete the first character of a node, if it is just with a filename created. (which is not working yet though, but still the first char shouldn't be skipped)
svn-id: r23795
2006-08-28 13:17:36 +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
Travis Howell
d47f3a76fb Add trailing slash to getCurrentDirectory if required. Fixes bug #1500563 - WIN32/SCUMM: Using scummvm.exe targetname not possible
svn-id: r22923
2006-06-05 00:14:23 +00:00
Travis Howell
1403a3511e Add code for get current directory
svn-id: r22437
2006-05-13 11:18:52 +00:00
Travis Howell
1124fa8d90 Get current directory via a path of '.'
svn-id: r22435
2006-05-13 10:42:21 +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
Travis Howell
84c99c8242 Revert the last change, since AbstractFilesystemNode::child() handles files and directories
svn-id: r22319
2006-05-03 21:53:38 +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
Travis Howell
e4e7ba1d7a Make sure AbstractFilesystemNode::child() only returns a directory in Windows
svn-id: r22306
2006-05-03 13:06:22 +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
Travis Howell
7b7d290675 Add windows code for AbstractFilesystemNode::child()
svn-id: r22253
2006-05-01 08:24:57 +00:00
Max Horn
8300d1d2a9 Added new AbstractFilesystemNode::child() resp. FilesystemNode::getChild() methods
svn-id: r22249
2006-04-30 22:52:10 +00:00
Travis Howell
c1572b2dbd _isPseudoRoot should be always false, in WindowsFilesystemNode(const String &path)
svn-id: r22195
2006-04-27 23:16:45 +00:00
Travis Howell
e163be131c Revert kListAllNoRoot addition to listdir(), the uninitialized _isPseudoRoot in windows filesys backend was real cause of problem.
svn-id: r22194
2006-04-27 23:14:54 +00:00
Max Horn
cf13cf3a70 I still don't know whether this is the correct fix for WindowsFilesystemNode, but at least with it, one definite and serious bug in the code (using an uninitialised variable) has been fixed, the end result hardly will be worse
svn-id: r22192
2006-04-27 17:21:33 +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
Travis Howell
194945f2a1 Rename variable in FSList::sort() to avoid conflict with system defines
svn-id: r21612
2006-04-04 23:26:11 +00:00
Max Horn
ac9203415e Some more FS code cleanup
svn-id: r21600
2006-04-04 21:03:17 +00:00
Max Horn
112ba72222 Removing more pseudo copy constructors in favor of the standard copy constructor (gee, everybody is copying my bad code, it seems ;-)
svn-id: r21597
2006-04-04 20:54:55 +00:00
Travis Howell
a98aea6efd Add kListAllNoRoot type to listDir() to handle recent file class changes, on file system backends which use _isPseudoRoot
svn-id: r21449
2006-03-25 10:39:05 +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
Max Horn
99b9c27f99 Why not fix the warning if you encounter it? :-)
svn-id: r17994
2005-05-09 08:47:09 +00:00
Nicolas Bacca
d99d4d09f2 Weird ... but fixes the second (and hopefully last) crash
svn-id: r17168
2005-03-16 22:58:42 +00:00
Paweł Kołodziejski
6746d89df5 ops
svn-id: r16918
2005-02-25 20:16:25 +00:00
Paweł Kołodziejski
531ca37040 fixed compilation
svn-id: r16916
2005-02-25 20:12:25 +00:00
Torbjörn Andersson
b1039bb59e Fixed warning, hopefully without breaking anything. (GCC doesn't like
casting from "const char *" to "char *".)

svn-id: r16826
2005-02-20 15:33:14 +00:00
Paweł Kołodziejski
e2753574ac compatibility fixes for wince
svn-id: r16814
2005-02-19 16:00:22 +00:00
Torbjörn Andersson
d6be4f03a7 Added getNodeForPath() so I can compile ScummVM with MinGW again. Since I
don't know where it's used, I'm not sure if it works correctly.

svn-id: r16752
2005-02-07 14:25:04 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Torbjörn Andersson
be58f22feb Allow the file browser to get back to the "pseudo root" under Windows. This
fixes bug #1074919.

svn-id: r15963
2004-11-29 11:14:12 +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
Travis Howell
cd46aba223 Add header
svn-id: r11826
2003-12-21 17:07:07 +00:00
Max Horn
0e645f88ae renamed namespace ScummVM to Common
svn-id: r10544
2003-10-02 17:43:02 +00:00
Travis Howell
053d12ef29 Small cleanup
svn-id: r9354
2003-08-01 04:42:56 +00:00
Jonathan Gray
bc1120b67a linux/mingw compilation fix pointed out by Jeroen Janssen
svn-id: r8984
2003-07-13 13:57:19 +00:00