aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins
diff options
context:
space:
mode:
authorCeRiAl2011-04-28 06:40:54 +0800
committerIsmail Khatib2011-05-18 06:04:23 +0800
commit6db6d69eedeb74d4863b2dd964407ca8bca1c4a8 (patch)
treeb0b2f5da189c13252fdfb2336c2fefa33174a39b /backends/plugins
parent582827df40ed4a86a067c26dface4d51929d391a (diff)
downloadscummvm-rg350-6db6d69eedeb74d4863b2dd964407ca8bca1c4a8.tar.gz
scummvm-rg350-6db6d69eedeb74d4863b2dd964407ca8bca1c4a8.tar.bz2
scummvm-rg350-6db6d69eedeb74d4863b2dd964407ca8bca1c4a8.zip
WINCE: Enable building of plugins with normal configure/make
Enables building of plugin .dlls without a custom Makefile. Also removes generation of scummvm.exe.map from configure script.
Diffstat (limited to 'backends/plugins')
-rw-r--r--backends/plugins/sdl/sdl-provider.cpp2
-rw-r--r--backends/plugins/win32/win32-provider.cpp9
2 files changed, 9 insertions, 2 deletions
diff --git a/backends/plugins/sdl/sdl-provider.cpp b/backends/plugins/sdl/sdl-provider.cpp
index 2ebcd77379..00520b48b0 100644
--- a/backends/plugins/sdl/sdl-provider.cpp
+++ b/backends/plugins/sdl/sdl-provider.cpp
@@ -22,7 +22,7 @@
#include "common/scummsys.h"
-#if defined(DYNAMIC_MODULES) && defined(SDL_BACKEND)
+#if defined(DYNAMIC_MODULES) && defined(SDL_BACKEND) && !defined(_WIN32_WCE)
#include "backends/plugins/sdl/sdl-provider.h"
#include "backends/plugins/dynamic-plugin.h"
diff --git a/backends/plugins/win32/win32-provider.cpp b/backends/plugins/win32/win32-provider.cpp
index 5176ec179a..bcbc6bde9e 100644
--- a/backends/plugins/win32/win32-provider.cpp
+++ b/backends/plugins/win32/win32-provider.cpp
@@ -70,8 +70,15 @@ public:
#ifndef _WIN32_WCE
_dlHandle = LoadLibrary(_filename.c_str());
#else
- if (!_filename.hasSuffix("scummvm.dll")) // skip loading the core scummvm module
+ if (!_filename.hasSuffix("scummvm.dll") &&
+ !_filename.hasSuffix("libstdc++-6.dll") &&
+ !_filename.hasSuffix("libgcc_s_sjlj-1.dll")) {
+ // skip loading the core scummvm module and runtime dlls
_dlHandle = LoadLibrary(toUnicode(_filename.c_str()));
+ } else {
+ // do not generate misleading error message
+ return false;
+ }
#endif
if (!_dlHandle) {