diff options
Diffstat (limited to 'backends/plugins/dc/dc-provider.cpp')
-rw-r--r-- | backends/plugins/dc/dc-provider.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/plugins/dc/dc-provider.cpp b/backends/plugins/dc/dc-provider.cpp index 9b150c8db4..742683d7fb 100644 --- a/backends/plugins/dc/dc-provider.cpp +++ b/backends/plugins/dc/dc-provider.cpp @@ -27,6 +27,7 @@ #include "backends/plugins/dc/dc-provider.h" #include "backends/plugins/dynamic-plugin.h" +#include "common/fs.h" #include "dcloader.h" @@ -83,12 +84,13 @@ public: }; -Plugin* DCPluginProvider::createPlugin(const Common::String &filename) const { - return new DCPlugin(filename); +Plugin* DCPluginProvider::createPlugin(const Common::FilesystemNode &node) const { + return new DCPlugin(node.getPath()); } -bool DCPluginProvider::isPluginFilename(const Common::String &filename) const { +bool DCPluginProvider::isPluginFilename(const Common::FilesystemNode &node) const { // Check the plugin suffix + Common::String filename = node.getName(); if (!filename.hasSuffix(".PLG")) return false; |