SCI: Add getGameObjectName to fix compilation

Is needed for 80462b3 (Fix auto-saving in the fan-made Cascade Quest)
This commit is contained in:
Martin Kiewitz 2016-06-25 23:59:46 +02:00
parent 80462b3f87
commit cedcdbc48d
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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.