diff options
Diffstat (limited to 'engines/prince/mhwanh.h')
-rw-r--r-- | engines/prince/mhwanh.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/prince/mhwanh.h b/engines/prince/mhwanh.h index b11ecd08e6..9344312cce 100644 --- a/engines/prince/mhwanh.h +++ b/engines/prince/mhwanh.h @@ -24,7 +24,9 @@ #define PRINCE_MHWANH_H #include "graphics/decoders/image_decoder.h" +#include "graphics/decoders/bmp.h" #include "graphics/surface.h" +#include "resource.h" namespace Prince { @@ -46,6 +48,18 @@ private: uint16 _paletteColorCount; }; +namespace Resource { + template <> inline + bool loadFromStream<MhwanhDecoder>(MhwanhDecoder &image, Common::SeekableReadStream &stream) { + return image.loadStream(stream); + } + + template <> inline + bool loadFromStream<Graphics::BitmapDecoder>(Graphics::BitmapDecoder &image, Common::SeekableReadStream &stream) { + return image.loadStream(stream); + } +} + } #endif |