aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/posix
diff options
context:
space:
mode:
authorMax Horn2008-09-30 16:34:38 +0000
committerMax Horn2008-09-30 16:34:38 +0000
commit73b833042e55959954d78b3e6aa2cc89c5b8848d (patch)
tree6084627a0c643a514186b2cbef439b971c322e22 /backends/plugins/posix
parent1d7de023d938078767a7c5b478769d5a4f308721 (diff)
downloadscummvm-rg350-73b833042e55959954d78b3e6aa2cc89c5b8848d.tar.gz
scummvm-rg350-73b833042e55959954d78b3e6aa2cc89c5b8848d.tar.bz2
scummvm-rg350-73b833042e55959954d78b3e6aa2cc89c5b8848d.zip
Modified FilePluginProvider to use FSNodes (instead of raw filenames / paths) in its API
svn-id: r34709
Diffstat (limited to 'backends/plugins/posix')
-rw-r--r--backends/plugins/posix/posix-provider.cpp5
-rw-r--r--backends/plugins/posix/posix-provider.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/backends/plugins/posix/posix-provider.cpp b/backends/plugins/posix/posix-provider.cpp
index 39847e53bf..ec67e5768a 100644
--- a/backends/plugins/posix/posix-provider.cpp
+++ b/backends/plugins/posix/posix-provider.cpp
@@ -27,6 +27,7 @@
#include "backends/plugins/posix/posix-provider.h"
#include "backends/plugins/dynamic-plugin.h"
+#include "common/fs.h"
#include <dlfcn.h>
@@ -78,8 +79,8 @@ public:
};
-Plugin* POSIXPluginProvider::createPlugin(const Common::String &filename) const {
- return new POSIXPlugin(filename);
+Plugin* POSIXPluginProvider::createPlugin(const Common::FilesystemNode &node) const {
+ return new POSIXPlugin(node.getPath());
}
diff --git a/backends/plugins/posix/posix-provider.h b/backends/plugins/posix/posix-provider.h
index 40c16b3e11..6cdc0f44d4 100644
--- a/backends/plugins/posix/posix-provider.h
+++ b/backends/plugins/posix/posix-provider.h
@@ -32,7 +32,7 @@
class POSIXPluginProvider : public FilePluginProvider {
protected:
- Plugin* createPlugin(const Common::String &filename) const;
+ Plugin* createPlugin(const Common::FilesystemNode &node) const;
};
#endif // defined(DYNAMIC_MODULES) && defined(UNIX)