diff options
Diffstat (limited to 'backends/fs/windows/windows-fs.cpp')
| -rw-r--r-- | backends/fs/windows/windows-fs.cpp | 15 | 
1 files changed, 2 insertions, 13 deletions
| diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index e69e72a746..face198430 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -107,19 +107,11 @@ const TCHAR* WindowsFilesystemNode::toUnicode(const char *str) {  }  WindowsFilesystemNode::WindowsFilesystemNode() { -	_isDirectory = true; -#ifndef _WIN32_WCE  	// Create a virtual root directory for standard Windows system +	_isDirectory = true;  	_isValid = false;  	_path = "";  	_isPseudoRoot = true; -#else -	_displayName = "Root"; -	// No need to create a pseudo root directory on Windows CE -	_isValid = true; -	_path = "\\"; -	_isPseudoRoot = false; -#endif  }  WindowsFilesystemNode::WindowsFilesystemNode(const Common::String &p, const bool currentDir) { @@ -174,7 +166,6 @@ bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b  	assert(_isDirectory);  	if (_isPseudoRoot) { -#ifndef _WIN32_WCE  		// Drives enumeration  		TCHAR drive_buffer[100];  		GetLogicalDriveStrings(sizeof(drive_buffer) / sizeof(TCHAR), drive_buffer); @@ -193,9 +184,7 @@ bool WindowsFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b  				entry._path = toAscii(current_drive);  				myList.push_back(new WindowsFilesystemNode(entry));  		} -#endif -	} -	else { +	} else {  		// Files enumeration  		WIN32_FIND_DATA desc;  		HANDLE handle; | 
