diff options
author | Arnaud Boutonné | 2010-09-17 22:40:53 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-09-17 22:40:53 +0000 |
commit | 1e9e8cd64a97ade7d8f9ff891e511d47b98da70d (patch) | |
tree | 6c6ab680cfd943bb6915536a64bfe3eae09d09cb /engines/hugo/file.h | |
parent | 99cc8051816fca07a185d1b2612271ff04098d65 (diff) | |
download | scummvm-rg350-1e9e8cd64a97ade7d8f9ff891e511d47b98da70d.tar.gz scummvm-rg350-1e9e8cd64a97ade7d8f9ff891e511d47b98da70d.tar.bz2 scummvm-rg350-1e9e8cd64a97ade7d8f9ff891e511d47b98da70d.zip |
HUGO: Fix crash in the first screen of H1 Dos
- Fix crash in the first screen of H1 Dos
- Clean up
svn-id: r52787
Diffstat (limited to 'engines/hugo/file.h')
-rw-r--r-- | engines/hugo/file.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/hugo/file.h b/engines/hugo/file.h index 446be0aa70..8a0188f2f3 100644 --- a/engines/hugo/file.h +++ b/engines/hugo/file.h @@ -46,7 +46,6 @@ public: bool fileExists(char *filename); - char *fetchString(int index); sound_pt getSound(short sound, uint16 *size); void closePlaybackFile(); @@ -66,6 +65,8 @@ public: virtual void readBackground(int screenIndex) = 0; virtual void readOverlay(int screenNum, image_pt image, ovl_t overlayType) = 0; + virtual char *fetchString(int index) = 0; + protected: HugoEngine &_vm; @@ -95,6 +96,7 @@ public: void closeDatabaseFiles(); void readBackground(int screenIndex); void readOverlay(int screenNum, image_pt image, ovl_t overlayType); + char *fetchString(int index); }; class FileManager_v2d : public FileManager { @@ -106,20 +108,10 @@ public: void closeDatabaseFiles(); void readBackground(int screenIndex); void readOverlay(int screenNum, image_pt image, ovl_t overlayType); + char *fetchString(int index); }; -class FileManager_v1w : public FileManager { -public: - FileManager_v1w(HugoEngine &vm); - ~FileManager_v1w(); - - void openDatabaseFiles(); - void closeDatabaseFiles(); - void readBackground(int screenIndex); - void readOverlay(int screenNum, image_pt image, ovl_t overlayType); -}; - -class FileManager_v3d : public FileManager { +class FileManager_v3d : public FileManager_v2d { public: FileManager_v3d(HugoEngine &vm); ~FileManager_v3d(); @@ -130,7 +122,15 @@ public: void readOverlay(int screenNum, image_pt image, ovl_t overlayType); private: Common::File _sceneryArchive2; /* Handle for scenery file */ +}; +class FileManager_v1w : public FileManager_v2d { +public: + FileManager_v1w(HugoEngine &vm); + ~FileManager_v1w(); + + void readOverlay(int screenNum, image_pt image, ovl_t overlayType); }; + } // End of namespace Hugo #endif //HUGO_FILE_H |