From 73b833042e55959954d78b3e6aa2cc89c5b8848d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 30 Sep 2008 16:34:38 +0000 Subject: Modified FilePluginProvider to use FSNodes (instead of raw filenames / paths) in its API svn-id: r34709 --- base/plugins.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'base/plugins.h') diff --git a/base/plugins.h b/base/plugins.h index 90c4469e4d..10fbc7d5e0 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -32,6 +32,7 @@ namespace Common { class FSList; + class FilesystemNode; } @@ -238,19 +239,19 @@ protected: * Subclasses of FilePluginProvider have to at least overload this method. * If the file is not found, or does not contain loadable code, 0 is returned instead. * - * @param filename the name of the loadable code module + * @param node the FSNode of the loadable code module * @return a pointer to a Plugin instance, or 0 if an error occurred. */ - virtual Plugin *createPlugin(const Common::String &filename) const = 0; + virtual Plugin *createPlugin(const Common::FilesystemNode &node) const = 0; /** - * Check if the supplied filename corresponds to a loadable plugin file in - * the current platform. + * Check if the supplied file corresponds to a loadable plugin file in + * the current platform. Usually, this will just check the file name. * - * @param filename the name of the file to check + * @param node the FSNode of the file to check * @return true if the filename corresponds to a plugin, false otherwise */ - virtual bool isPluginFilename(const Common::String &filename) const; + virtual bool isPluginFilename(const Common::FilesystemNode &node) const; /** * Optionally add to the list of directories to be searched for -- cgit v1.2.3