aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/glk.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-14 18:01:42 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit67275924b5255d7503fe8bd15c853cfec197c569 (patch)
tree8157208a17d4cb9ca87f666a396db1345cb97664 /engines/glk/glk.h
parent454f92cc74e1357b96ce06e8c77ed6c32cb30ba9 (diff)
downloadscummvm-rg350-67275924b5255d7503fe8bd15c853cfec197c569.tar.gz
scummvm-rg350-67275924b5255d7503fe8bd15c853cfec197c569.tar.bz2
scummvm-rg350-67275924b5255d7503fe8bd15c853cfec197c569.zip
GLK: Derive detection from MetaEngine rather than AdvancedMetaEngine
Diffstat (limited to 'engines/glk/glk.h')
-rw-r--r--engines/glk/glk.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/engines/glk/glk.h b/engines/glk/glk.h
index 92ea2aba91..b48d4e6e7d 100644
--- a/engines/glk/glk.h
+++ b/engines/glk/glk.h
@@ -70,7 +70,13 @@ enum GlkDebugChannels {
#define GLK_SAVEGAME_VERSION 1
-struct GlkGameDescription;
+struct GlkGameDescription {
+ Common::String _gameId;
+ Common::Language _language;
+ Common::String _filename;
+ InterpreterType _interpType;
+ Common::String _md5;
+};
/**
* Base class for the different interpreters
@@ -87,7 +93,7 @@ private:
*/
void initGraphicsMode();
protected:
- const GlkGameDescription *_gameDescription;
+ const GlkGameDescription _gameDescription;
Common::RandomSource _random;
int _loadSaveSlot;
@@ -119,7 +125,7 @@ public:
void (*gli_unregister_arr)(void *array, glui32 len, const char *typecode, gidispatch_rock_t objrock);
public:
- GlkEngine(OSystem *syst, const GlkGameDescription *gameDesc);
+ GlkEngine(OSystem *syst, const GlkGameDescription &gameDesc);
virtual ~GlkEngine();
/**
@@ -149,22 +155,22 @@ public:
/**
* Returns the language
*/
- Common::Language getLanguage() const;
+ Common::Language getLanguage() const { return _gameDescription._language; };
/**
* Returns the running interpreter type
*/
- InterpreterType getInterpreterType() const;
+ InterpreterType getInterpreterType() const { return _gameDescription._interpType; }
/**
* Returns the game's md5
*/
- const Common::String &getGameMD5() const;
+ const Common::String &getGameMD5() const { return _gameDescription._md5; }
/**
* Returns the primary filename for the game
*/
- const Common::String &getFilename() const;
+ const Common::String &getFilename() const { return _gameDescription._filename; }
/**
* Return the game engine's target name