diff options
author | Andre Heider | 2010-09-05 12:52:17 +0000 |
---|---|---|
committer | Andre Heider | 2010-09-05 12:52:17 +0000 |
commit | c4a88559a5577e816793b02a6eaaa3ab69c8ecdb (patch) | |
tree | 2ac2f6abc8d4c5e584bccf283582273bfad2791e /backends/plugins/ps2/ps2-provider.h | |
parent | 86f4dbd956fa2b6622ceb8748427700373a1aceb (diff) | |
download | scummvm-rg350-c4a88559a5577e816793b02a6eaaa3ab69c8ecdb.tar.gz scummvm-rg350-c4a88559a5577e816793b02a6eaaa3ab69c8ecdb.tar.bz2 scummvm-rg350-c4a88559a5577e816793b02a6eaaa3ab69c8ecdb.zip |
PLUGINS: Move platform specific code out of the generic ELF loader.
Instead overwrite pure virtual functions in a backend specific class.
svn-id: r52556
Diffstat (limited to 'backends/plugins/ps2/ps2-provider.h')
-rw-r--r-- | backends/plugins/ps2/ps2-provider.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/backends/plugins/ps2/ps2-provider.h b/backends/plugins/ps2/ps2-provider.h index 00ddb4647e..8c5e8af65a 100644 --- a/backends/plugins/ps2/ps2-provider.h +++ b/backends/plugins/ps2/ps2-provider.h @@ -18,29 +18,24 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * $URL$ - * $Id$ + * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2010-plugins/backends/plugins/ds/ds-provider.h $ + * $Id: ds-provider.h 52112 2010-08-16 08:41:04Z toneman1138 $ * */ #if defined(DYNAMIC_MODULES) && defined(__PLAYSTATION2__) +#ifndef BACKENDS_PLUGINS_PS2_PROVIDER_H +#define BACKENDS_PLUGINS_PS2_PROVIDER_H + #include "backends/plugins/elf/elf-provider.h" -#include "backends/plugins/elf/mips-loader.h" class PS2PluginProvider : public ELFPluginProvider { - class PS2Plugin : public ELFPlugin { - public: - PS2Plugin(const Common::String &filename) : ELFPlugin(filename) {} - - DLObject *makeDLObject() { return new MIPSDLObject(); } - }; - public: - Plugin* createPlugin(const Common::FSNode &node) const { - return new PS2Plugin(node.getPath()); - } + Plugin *createPlugin(const Common::FSNode &node) const; }; +#endif // BACKENDS_PLUGINS_PS2_PROVIDER_H + #endif // defined(DYNAMIC_MODULES) && defined(__PLAYSTATION2__) |