diff options
-rw-r--r-- | engines/sci/sci.cpp | 4 | ||||
-rw-r--r-- | engines/sci/sci.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index e650b4ba7e..b80456c09c 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -913,6 +913,10 @@ Common::String SciEngine::unwrapFilename(const Common::String &name) const { return name; } +const char *SciEngine::getGameObjectName() { + return _gamestate->_segMan->getObjectName(_gameObjectAddress); +} + int SciEngine::inQfGImportRoom() const { if (_gameId == GID_QFG2 && _gamestate->currentRoomNumber() == 805) { // QFG2 character import screen diff --git a/engines/sci/sci.h b/engines/sci/sci.h index cc26db32d4..956187ce69 100644 --- a/engines/sci/sci.h +++ b/engines/sci/sci.h @@ -303,6 +303,8 @@ public: /** Remove the 'TARGET-' prefix of the given filename, if present. */ Common::String unwrapFilename(const Common::String &name) const; + const char *getGameObjectName(); // Gets the name of the game object (should only be used for identifying fanmade games) + /** * Checks if we are in a QfG import screen, where special handling * of file-listings is performed. |