aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/features.cpp5
-rw-r--r--engines/sci/engine/features.h4
-rw-r--r--engines/sci/engine/savegame.cpp2
-rw-r--r--engines/sci/sci.cpp2
4 files changed, 0 insertions, 13 deletions
diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp
index 4ada9fbeea..736a125b88 100644
--- a/engines/sci/engine/features.cpp
+++ b/engines/sci/engine/features.cpp
@@ -43,11 +43,6 @@ GameFeatures::GameFeatures(SegManager *segMan, Kernel *kernel) : _segMan(segMan)
_usesCdTrack = Common::File::exists("cdaudio.map");
}
-void GameFeatures::setGameInfo(reg_t gameObj, Common::String gameId) {
- _gameObj = gameObj;
- _gameId = gameId;
-}
-
bool GameFeatures::autoDetectFeature(FeatureDetection featureDetection, int methodNum) {
Common::String objName;
Selector slc = 0;
diff --git a/engines/sci/engine/features.h b/engines/sci/engine/features.h
index caa2ae11da..e647827f0f 100644
--- a/engines/sci/engine/features.h
+++ b/engines/sci/engine/features.h
@@ -44,8 +44,6 @@ public:
GameFeatures(SegManager *segMan, Kernel *kernel);
~GameFeatures() {}
- void setGameInfo(reg_t gameObj, Common::String gameId);
-
/**
* Autodetects the DoSound type
* @return DoSound type, SCI_VERSION_0_EARLY / SCI_VERSION_0_LATE /
@@ -111,8 +109,6 @@ private:
SegManager *_segMan;
Kernel *_kernel;
- reg_t _gameObj;
- Common::String _gameId;
};
} // End of namespace Sci
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index af3637f43e..e5020fa2c4 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -1014,8 +1014,6 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
retval->successor = NULL;
retval->_gameId = s->_gameId;
- retval->_features->setGameInfo(retval->_gameObj, retval->_gameId);
-
#ifdef USE_OLD_MUSIC_FUNCTIONS
retval->_sound._it = NULL;
retval->_sound._flags = s->_sound._flags;
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index c1a83ea88f..992fd03126 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -216,8 +216,6 @@ Common::Error SciEngine::run() {
assert(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value != 0);
strcpy(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value, "");
- _gamestate->_features->setGameInfo(_gamestate->_gameObj, _gamestate->_gameId);
-
SciVersion soundVersion = _gamestate->_features->detectDoSoundType();
_gamestate->_soundCmd = new SoundCommandParser(_resMan, segMan, _kernel, _audio, soundVersion);