aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp41
1 files changed, 4 insertions, 37 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index ebba1b08f6..d24d651905 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -43,6 +43,8 @@ namespace Sci {
class GfxDriver;
+SciVersion _sciVersion;
+
SciEngine::SciEngine(OSystem *syst, const SciGameDescription *desc)
: Engine(syst), _gameDescription(desc) {
// Put your engine in a sane state, but do nothing big yet;
@@ -177,7 +179,7 @@ Common::Error SciEngine::run() {
// Default config ends
#endif
- gfxop_init(_resMan->sciVersion(), &gfx_state, &gfx_options, _resMan, gfxmode, 1, 1);
+ gfxop_init(&gfx_state, &gfx_options, _resMan, gfxmode, 1, 1);
if (game_init_graphics(_gamestate)) { // Init interpreter graphics
warning("Game initialization failed: Error in GFX subsystem. Aborting...");
@@ -189,7 +191,7 @@ Common::Error SciEngine::run() {
return Common::kUnknownError;
}
- printf("Emulating SCI version %s\n", getSciVersionDesc(_resMan->sciVersion()).c_str());
+ printf("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion()).c_str());
game_run(&_gamestate); // Run the game
@@ -227,10 +229,6 @@ const char* SciEngine::getGameID() const {
return _gameDescription->desc.gameid;
}
-SciVersion SciEngine::getVersion() const {
- return _resMan->sciVersion();
-}
-
Common::Language SciEngine::getLanguage() const {
return _gameDescription->desc.language;
}
@@ -267,35 +265,4 @@ void SciEngine::pauseEngineIntern(bool pause) {
_mixer->pauseAll(pause);
}
-Common::String SciEngine::getSciVersionDesc(SciVersion version) const {
- switch (version) {
- case SCI_VERSION_AUTODETECT:
- return "Autodetect";
- case SCI_VERSION_0_EARLY:
- return "Early SCI0";
- case SCI_VERSION_0_LATE:
- return "Late SCI0";
- case SCI_VERSION_01:
- return "SCI01";
- case SCI_VERSION_1_EGA:
- return "SCI1 EGA";
- case SCI_VERSION_1_EARLY:
- return "Early SCI1";
- case SCI_VERSION_1_MIDDLE:
- return "Middle SCI1";
- case SCI_VERSION_1_LATE:
- return "Late SCI1";
- case SCI_VERSION_1_1:
- return "SCI1.1";
- case SCI_VERSION_2:
- return "SCI2";
- case SCI_VERSION_2_1:
- return "SCI2.1";
- case SCI_VERSION_3:
- return "SCI3";
- default:
- return "Unknown";
- }
-}
-
} // End of namespace Sci