From 7164016b34d86329a26c8b47ec986ff810ff7b73 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Tue, 2 Jul 2019 20:59:32 +0200 Subject: SUPERNOVA: Refactor .dat file access --- engines/supernova/resman.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/supernova/resman.h') diff --git a/engines/supernova/resman.h b/engines/supernova/resman.h index 9a4f739dea..5fbb3cd973 100644 --- a/engines/supernova/resman.h +++ b/engines/supernova/resman.h @@ -29,6 +29,7 @@ #include "supernova/graphics.h" #include "supernova/sound.h" +#include "supernova/supernova.h" namespace Common { @@ -36,6 +37,7 @@ class MemoryReadStream; } namespace Supernova { +class SupernovaEngine; class ResourceManager { public: @@ -49,7 +51,7 @@ public: static const int kNumImageFiles2 = 47; public: - ResourceManager(int MSPart); + ResourceManager(SupernovaEngine *vm); ~ResourceManager(); Audio::SeekableAudioStream *getSoundStream(AudioId index); @@ -77,7 +79,7 @@ private: Common::ScopedPtr _musicIntro; Common::ScopedPtr _musicOutro; Common::ScopedPtr _sirenStream; - int _MSPart; + SupernovaEngine *_vm; int _audioRate; MSNImage **_images; byte _cursorNormal[256]; -- cgit v1.2.3