diff options
author | Jordi Vilalta Prat | 2008-05-13 09:30:23 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-05-13 09:30:23 +0000 |
commit | fe58f0ee4b9d91f4ed349bafb16d2a8d6fb59faa (patch) | |
tree | bfc07a37e62bd88fe58500aaba47d9980adda9fd /base/main.cpp | |
parent | 3db45cc0c85967059744a987cc86c01631984a69 (diff) | |
download | scummvm-rg350-fe58f0ee4b9d91f4ed349bafb16d2a8d6fb59faa.tar.gz scummvm-rg350-fe58f0ee4b9d91f4ed349bafb16d2a8d6fb59faa.tar.bz2 scummvm-rg350-fe58f0ee4b9d91f4ed349bafb16d2a8d6fb59faa.zip |
- Added operator-> to Plugin subclasses so they don't have to reimplement the PluginObject subclass interfaces (thanks to Fingolfin for suggesting it)
- Added the PluginSubclass template to help creating Plugin subclasses
svn-id: r32082
Diffstat (limited to 'base/main.cpp')
-rw-r--r-- | base/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp index 8b697e120d..c36c506d7f 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -32,6 +32,7 @@ */ #include "engines/engine.h" +#include "engines/metaengine.h" #include "base/commandLine.h" #include "base/plugins.h" #include "base/version.h" @@ -138,7 +139,7 @@ static int runGame(const EnginePlugin *plugin, OSystem &system, const Common::St // Create the game engine Engine *engine = 0; - PluginError err = plugin->createInstance(&system, &engine); + PluginError err = (*plugin)->createInstance(&system, &engine); if (!engine || err != kNoError) { // TODO: Show an error dialog or so? // TODO: Also take 'err' into consideration... |