diff options
author | Max Horn | 2008-09-30 16:34:38 +0000 |
---|---|---|
committer | Max Horn | 2008-09-30 16:34:38 +0000 |
commit | 73b833042e55959954d78b3e6aa2cc89c5b8848d (patch) | |
tree | 6084627a0c643a514186b2cbef439b971c322e22 /backends/plugins/posix | |
parent | 1d7de023d938078767a7c5b478769d5a4f308721 (diff) | |
download | scummvm-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.cpp | 5 | ||||
-rw-r--r-- | backends/plugins/posix/posix-provider.h | 2 |
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) |