From e3454b5d96c258f59a1186eae1bdfd01d5f7af3e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 18 May 2019 16:21:55 -1000 Subject: GLK: TADS: Don't support RTL --- engines/glk/glk.h | 12 +----------- engines/glk/tads/tads.cpp | 8 ++++++++ engines/glk/tads/tads.h | 5 +++++ 3 files changed, 14 insertions(+), 11 deletions(-) (limited to 'engines') diff --git a/engines/glk/glk.h b/engines/glk/glk.h index 6b95eb2a62..f96f384027 100644 --- a/engines/glk/glk.h +++ b/engines/glk/glk.h @@ -86,7 +86,7 @@ protected: /** * Returns true whether a given feature is supported by the engine */ - virtual bool hasFeature(EngineFeature f) const; + virtual bool hasFeature(EngineFeature f) const override; /** * Setup the video mode @@ -138,16 +138,6 @@ public: return true; } - /** - * Returns the bitset of game features - */ - uint32 getFeatures() const; - - /** - * Returns whether the game is a demo - */ - bool isDemo() const; - /** * Returns the language */ diff --git a/engines/glk/tads/tads.cpp b/engines/glk/tads/tads.cpp index 61e13cdb15..b021b02c84 100644 --- a/engines/glk/tads/tads.cpp +++ b/engines/glk/tads/tads.cpp @@ -35,6 +35,14 @@ TADS::TADS(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gam os_init(nullptr, nullptr, 0, 0, 0); } +bool TADS::hasFeature(EngineFeature f) const { + // The TADS codebases rely on a lot of static globals, so RTL can't be supported + if (f == kSupportsRTL) + return false; + + return GlkAPI::hasFeature(f); +} + Common::Error TADS::loadGameData(strid_t file) { // TODO return Common::kNoError; diff --git a/engines/glk/tads/tads.h b/engines/glk/tads/tads.h index e4640f04bf..6ad8780a2b 100644 --- a/engines/glk/tads/tads.h +++ b/engines/glk/tads/tads.h @@ -48,6 +48,11 @@ public: */ virtual InterpreterType getInterpreterType() const override { return INTERPRETER_SCOTT; } + /** + * Returns true whether a given feature is supported by the engine + */ + virtual bool hasFeature(EngineFeature f) const override; + /** * Load a savegame from the passed stream */ -- cgit v1.2.3