mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 05:36:12 +00:00
SCI: Add getGameObjectName to fix compilation
Is needed for 80462b3 (Fix auto-saving in the fan-made Cascade Quest)
This commit is contained in:
parent
80462b3f87
commit
cedcdbc48d
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user