diff options
Diffstat (limited to 'engines/agi/loader_v2.cpp')
-rw-r--r-- | engines/agi/loader_v2.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/engines/agi/loader_v2.cpp b/engines/agi/loader_v2.cpp index fd875b7fbc..4ad1c6bf93 100644 --- a/engines/agi/loader_v2.cpp +++ b/engines/agi/loader_v2.cpp @@ -29,18 +29,6 @@ namespace Agi { -int AgiLoader_v2::version() { - return 2; -} - -void AgiLoader_v2::setIntVersion(int ver) { - _intVersion = ver; -} - -int AgiLoader_v2::getIntVersion() { - return _intVersion; -} - int AgiLoader_v2::detectGame() { if (!Common::File::exists(LOGDIR) || !Common::File::exists(PICDIR) || @@ -48,8 +36,7 @@ int AgiLoader_v2::detectGame() { !Common::File::exists(VIEWDIR)) return errInvalidAGIFile; - _intVersion = 0x2917; // setup for 2.917 - return _vm->v2IdGame(); + return _vm->setupV2Game(_vm->getVersion()); } int AgiLoader_v2::loadDir(AgiDir *agid, const char *fname) { |