aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/dc
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-05-13 13:24:49 +0000
committerJordi Vilalta Prat2008-05-13 13:24:49 +0000
commita392bc4b0e860429ec8ba7a79bc6ed4eab8f0335 (patch)
tree7f44a8a4491bce8929015d5c070c971ac8bf8502 /backends/plugins/dc
parentf7a682edf9c2c9a50cba9b869f447a9781def64b (diff)
downloadscummvm-rg350-a392bc4b0e860429ec8ba7a79bc6ed4eab8f0335.tar.gz
scummvm-rg350-a392bc4b0e860429ec8ba7a79bc6ed4eab8f0335.tar.bz2
scummvm-rg350-a392bc4b0e860429ec8ba7a79bc6ed4eab8f0335.zip
Taken care of FilePluginProvider's FIXMEs
svn-id: r32085
Diffstat (limited to 'backends/plugins/dc')
-rw-r--r--backends/plugins/dc/dc-provider.cpp10
-rw-r--r--backends/plugins/dc/dc-provider.h3
2 files changed, 10 insertions, 3 deletions
diff --git a/backends/plugins/dc/dc-provider.cpp b/backends/plugins/dc/dc-provider.cpp
index 1cae4bbd32..9b150c8db4 100644
--- a/backends/plugins/dc/dc-provider.cpp
+++ b/backends/plugins/dc/dc-provider.cpp
@@ -83,9 +83,17 @@ public:
};
-Plugin* SDLPluginProvider::createPlugin(const Common::String &filename) const {
+Plugin* DCPluginProvider::createPlugin(const Common::String &filename) const {
return new DCPlugin(filename);
}
+bool DCPluginProvider::isPluginFilename(const Common::String &filename) const {
+ // Check the plugin suffix
+ if (!filename.hasSuffix(".PLG"))
+ return false;
+
+ return true;
+}
+
#endif // defined(DYNAMIC_MODULES) && defined(__DC__)
diff --git a/backends/plugins/dc/dc-provider.h b/backends/plugins/dc/dc-provider.h
index 1b96f55d4d..f413061828 100644
--- a/backends/plugins/dc/dc-provider.h
+++ b/backends/plugins/dc/dc-provider.h
@@ -34,8 +34,7 @@ class DCPluginProvider : public FilePluginProvider {
protected:
Plugin* createPlugin(const Common::String &filename) const;
- virtual const char* getPrefix() const { return ""; }
- virtual const char* getSuffix() const { return ".PLG"; }
+ bool isPluginFilename(const Common::String &filename) const;
virtual void addCustomDirectories(Common::StringList &dirs) const {
dirs.push_back("/");