diff options
author | Max Horn | 2006-04-15 20:36:41 +0000 |
---|---|---|
committer | Max Horn | 2006-04-15 20:36:41 +0000 |
commit | 68cb7f52c8dd64ccfe8f28e847b530c8835175c3 (patch) | |
tree | 635011611fbc8592289b85c0b704d5a0cec057ea /engines/sword1/sword1.cpp | |
parent | ad45318328e23b76e346414c62ef4c22d8ebe059 (diff) | |
download | scummvm-rg350-68cb7f52c8dd64ccfe8f28e847b530c8835175c3.tar.gz scummvm-rg350-68cb7f52c8dd64ccfe8f28e847b530c8835175c3.tar.bz2 scummvm-rg350-68cb7f52c8dd64ccfe8f28e847b530c8835175c3.zip |
- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a new getActiveDomain method that returns a pointer to the actual active *domain*
- Added Engine::_targetName whose value is computed from the name of the active domain
- Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain
- This in turn allowed for removing usage of GameDetector in many places
svn-id: r21916
Diffstat (limited to 'engines/sword1/sword1.cpp')
-rw-r--r-- | engines/sword1/sword1.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 7db5e26e2e..6f11859a92 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -117,8 +117,8 @@ DetectedGameList Engine_SWORD1_detectGames(const FSList &fslist) { return detectedGames; } -Engine *Engine_SWORD1_create(GameDetector *detector, OSystem *syst) { - return new SwordEngine(detector, syst); +Engine *Engine_SWORD1_create(OSystem *syst) { + return new SwordEngine(syst); } REGISTER_PLUGIN(SWORD1, "Broken Sword"); @@ -131,7 +131,7 @@ void SwordEngine::errorString(const char *buf1, char *buf2) { strcpy(buf2, buf1); } -SwordEngine::SwordEngine(GameDetector *detector, OSystem *syst) +SwordEngine::SwordEngine(OSystem *syst) : Engine(syst) { if (0 == scumm_stricmp(ConfMan.get("gameid").c_str(), "sword1demo")) @@ -166,10 +166,10 @@ SwordEngine::~SwordEngine() { delete _resMan; } -int SwordEngine::init(GameDetector &detector) { +int SwordEngine::init() { _system->beginGFXTransaction(); - initCommonGFX(detector, true); + initCommonGFX(true); _system->initSize(640, 480); _system->endGFXTransaction(); |