aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorCameron Cawley2019-11-10 16:34:25 +0000
committerEugene Sandulenko2019-11-17 22:33:56 +0100
commitf2b9f7bb76c041825bef1dcee3abf17d923898da (patch)
tree9ead87f005a086b6c1cb2cfe4e81d846e3e691dc /backends/fs
parentc5a5e0f68a8d740f37f234e773988e8f58273466 (diff)
downloadscummvm-rg350-f2b9f7bb76c041825bef1dcee3abf17d923898da.tar.gz
scummvm-rg350-f2b9f7bb76c041825bef1dcee3abf17d923898da.tar.bz2
scummvm-rg350-f2b9f7bb76c041825bef1dcee3abf17d923898da.zip
BACKENDS: Remove the Windows CE port
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/stdiostream.cpp3
-rw-r--r--backends/fs/windows/windows-fs.cpp15
-rw-r--r--backends/fs/windows/windows-fs.h4
3 files changed, 2 insertions, 20 deletions
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 <windows.h>
-#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();