Move functions from agi.cpp to more appropriate files.

svn-id: r42662
This commit is contained in:
Eugene Sandulenko 2009-07-22 15:55:33 +00:00
parent 9bd355acf8
commit 483a4c0eeb
5 changed files with 153 additions and 151 deletions

View file

@ -1312,4 +1312,19 @@ bool AgiBase::canSaveGameStateCurrently() {
return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork) && !_noSaveLoadAllowed && _game.inputEnabled);
}
int AgiEngine::agiDetectGame() {
int ec = errOK;
assert(_gameDescription != NULL);
if (getVersion() <= 0x2999) {
_loader = new AgiLoader_v2(this);
} else {
_loader = new AgiLoader_v3(this);
}
ec = _loader->detectGame();
return ec;
}
} // End of namespace Agi