Move functions from agi.cpp to more appropriate files.
svn-id: r42662
This commit is contained in:
parent
9bd355acf8
commit
483a4c0eeb
5 changed files with 153 additions and 151 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue