aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2016-06-25 23:59:46 +0200
committerMartin Kiewitz2016-06-25 23:59:46 +0200
commitcedcdbc48d391537e4bd867d60665f72b1528a67 (patch)
tree4658a7f33fae69564b1bfe994247b7f4ca740d9c /engines
parent80462b3f878df4148dae6d1b2d9385bc544ce7d0 (diff)
downloadscummvm-rg350-cedcdbc48d391537e4bd867d60665f72b1528a67.tar.gz
scummvm-rg350-cedcdbc48d391537e4bd867d60665f72b1528a67.tar.bz2
scummvm-rg350-cedcdbc48d391537e4bd867d60665f72b1528a67.zip
SCI: Add getGameObjectName to fix compilation
Is needed for 80462b3 (Fix auto-saving in the fan-made Cascade Quest)
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sci.cpp4
-rw-r--r--engines/sci/sci.h2
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.