diff options
author | Thierry Crozat | 2017-09-30 23:26:06 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:33 +0000 |
commit | 184b3a166217ba5c0ea3eddd3e01798d8e752417 (patch) | |
tree | 34d304ef90ef1fa05033c92270e2a93e1bdfbbed /engines/supernova/supernova.h | |
parent | d76b44ee57c5a5db6d825af16e82bf778ba0d30b (diff) | |
download | scummvm-rg350-184b3a166217ba5c0ea3eddd3e01798d8e752417.tar.gz scummvm-rg350-184b3a166217ba5c0ea3eddd3e01798d8e752417.tar.bz2 scummvm-rg350-184b3a166217ba5c0ea3eddd3e01798d8e752417.zip |
SUPERNOVA: Load strings from the supernova.dat file
Diffstat (limited to 'engines/supernova/supernova.h')
-rw-r--r-- | engines/supernova/supernova.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/supernova/supernova.h b/engines/supernova/supernova.h index a1a682d02f..356cfe482c 100644 --- a/engines/supernova/supernova.h +++ b/engines/supernova/supernova.h @@ -104,6 +104,8 @@ public: int _screenHeight; bool _allowLoadGame; bool _allowSaveGame; + Common::StringArray _gameStrings; + Common::String _nullString; byte _imageIndex; byte _sectionIndex; @@ -120,6 +122,7 @@ public: void pauseTimer(bool pause); int textWidth(const char *text); int textWidth(const uint16 key); + Common::Error loadGameStrings(); void initData(); void initPalette(); void paletteFadeIn(); @@ -146,6 +149,12 @@ public: bool loadGame(int slot); bool saveGame(int slot, const Common::String &description); + const Common::String &getGameString(int idx) const { + if (idx < 0 || idx >= _gameStrings.size()) + return _nullString; + return _gameStrings[idx]; + } + Common::MemoryReadStream *convertToMod(const char *filename, int version = 1); virtual Common::Error loadGameState(int slot); |