From f2b9f7bb76c041825bef1dcee3abf17d923898da Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 10 Nov 2019 16:34:25 +0000 Subject: BACKENDS: Remove the Windows CE port --- backends/fs/stdiostream.cpp | 3 --- backends/fs/windows/windows-fs.cpp | 15 ++------------- backends/fs/windows/windows-fs.h | 4 ---- 3 files changed, 2 insertions(+), 20 deletions(-) (limited to 'backends/fs') diff --git a/backends/fs/stdiostream.cpp b/backends/fs/stdiostream.cpp index a893149e9a..8206bd180f 100644 --- a/backends/fs/stdiostream.cpp +++ b/backends/fs/stdiostream.cpp @@ -26,9 +26,6 @@ #define FORBIDDEN_SYMBOL_ALLOW_ALL #include "backends/fs/stdiostream.h" -#ifdef _WIN32_WCE -#include "backends/platform/wince/missing/fopen.h" -#endif StdioStream::StdioStream(void *handle) : _handle(handle) { assert(handle); 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; diff --git a/backends/fs/windows/windows-fs.h b/backends/fs/windows/windows-fs.h index e2404dacbc..30c2a98845 100644 --- a/backends/fs/windows/windows-fs.h +++ b/backends/fs/windows/windows-fs.h @@ -24,9 +24,6 @@ #define WINDOWS_FILESYSTEM_H #include -#ifdef _WIN32_WCE -#undef GetCurrentDirectory -#endif #include "backends/fs/abstract-fs.h" @@ -53,7 +50,6 @@ public: * Creates a WindowsFilesystemNode with the root node as path. * * In regular windows systems, a virtual root path is used "". - * In windows CE, the "\" root is used instead. */ WindowsFilesystemNode(); -- cgit v1.2.3