aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/psp/psp-provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/plugins/psp/psp-provider.h')
-rw-r--r--backends/plugins/psp/psp-provider.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/backends/plugins/psp/psp-provider.h b/backends/plugins/psp/psp-provider.h
index 4662f875b7..efe62ecf2c 100644
--- a/backends/plugins/psp/psp-provider.h
+++ b/backends/plugins/psp/psp-provider.h
@@ -29,9 +29,21 @@
#define BACKENDS_PLUGINS_PSP_PSP_PROVIDER_H
#include "backends/plugins/elf-provider.h"
+#include "backends/plugins/mips-loader.h"
class PSPPluginProvider : public ELFPluginProvider {
- Plugin* createPlugin(const Common::FSNode &node) const;
+ class PSPPlugin : public ELFPlugin {
+ public:
+ PSPPlugin(const Common::String &filename) : ELFPlugin(filename) {}
+
+ DLObject *makeDLObject() { return new MIPSDLObject(); }
+ };
+
+public:
+ Plugin* PSPPluginProvider::createPlugin(const Common::FSNode &node) const {
+ return new PSPPlugin(node.getPath());
+ }
+}
};
#endif /* BACKENDS_PLUGINS_PSP_PSP_PROVIDER_H */