diff options
| author | Max Horn | 2006-04-03 22:06:42 +0000 | 
|---|---|---|
| committer | Max Horn | 2006-04-03 22:06:42 +0000 | 
| commit | ebeded36a198fea5d86721be859e4540f64624d3 (patch) | |
| tree | c0fd4456f7966aae81f7b151b09421ff16c3f8b9 /backends/fs | |
| parent | 4226aa761dd43e8515f4f4f6790f142fdd8b3927 (diff) | |
| download | scummvm-rg350-ebeded36a198fea5d86721be859e4540f64624d3.tar.gz scummvm-rg350-ebeded36a198fea5d86721be859e4540f64624d3.tar.bz2 scummvm-rg350-ebeded36a198fea5d86721be859e4540f64624d3.zip | |
Added comment on why we use getcwd in POSIXFilesystemNode at all
svn-id: r21582
Diffstat (limited to 'backends/fs')
| -rw-r--r-- | backends/fs/posix/posix-fs.cpp | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 925d06486b..f32f30d8ba 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -82,7 +82,13 @@ AbstractFilesystemNode *FilesystemNode::getNodeForPath(const String &path) {  POSIXFilesystemNode::POSIXFilesystemNode() {  #ifndef __DC__ -	// FIXME: It is evil & slow to always call getcwd here +	// FIXME: It is evil & slow to always call getcwd here. +	// The intention behind this hack was/is to be more user friendly +	// in our save/load dialogs: Instead of starting at the FS root, +	// we start at the current directory. However, that's just a hack. +	// Proper solution would be to extend FilesystemNode by the concept +	// of 'current' or 'default' directory, and then modify the +	// save/load dialogs to explicitly use that as starting point.  	char buf[MAXPATHLEN];  	getcwd(buf, MAXPATHLEN); | 
