diff options
-rw-r--r-- | engines/gnap/configure.engine | 3 | ||||
-rw-r--r-- | engines/gnap/detection.cpp | 2 | ||||
-rw-r--r-- | engines/gnap/gamesys.cpp | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/engines/gnap/configure.engine b/engines/gnap/configure.engine new file mode 100644 index 0000000000..7aa538fd2c --- /dev/null +++ b/engines/gnap/configure.engine @@ -0,0 +1,3 @@ +# This file is included from the main "configure" script +# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] +add_engine gnap "UFOs" no diff --git a/engines/gnap/detection.cpp b/engines/gnap/detection.cpp index 88994451a4..ecd07a6103 100644 --- a/engines/gnap/detection.cpp +++ b/engines/gnap/detection.cpp @@ -54,7 +54,7 @@ static const ADGameDescription gameDescriptions[] = { class GnapMetaEngine : public AdvancedMetaEngine { public: GnapMetaEngine() : AdvancedMetaEngine(Gnap::gameDescriptions, sizeof(ADGameDescription), gnapGames) { - _singleid = "gnap"; + _singleId = "gnap"; _maxScanDepth = 3; } diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp index cced8f3a21..5a72428fb8 100644 --- a/engines/gnap/gamesys.cpp +++ b/engines/gnap/gamesys.cpp @@ -24,7 +24,7 @@ #include "gnap/fontdata.h" #include "graphics/fontman.h" #include "graphics/font.h" -#include "graphics/decoders/bmp.h" +#include "image/bmp.h" namespace Gnap { @@ -365,7 +365,7 @@ Graphics::Surface *GameSys::loadBitmap(int resourceId) { uint32 resourceSize = _vm->_dat->getResourceSize(resourceId); Common::MemoryReadStream stream(resourceData, resourceSize, DisposeAfterUse::NO); Graphics::Surface *bmpSurface; - Graphics::BitmapDecoder bmp; + Image::BitmapDecoder bmp; if (!bmp.loadStream(stream)) error("GameSys::loadBitmap() Could not load bitmap resource %08X", resourceId); bmpSurface = bmp.getSurface()->convertTo(_vm->_system->getScreenFormat()); |