From f4414ac084f08ed4e1e8b2b4cbd649588ef33820 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 11 Sep 2007 21:39:16 +0000 Subject: remove the rest of the PreAGI loader svn-id: r28895 --- engines/agi/preagi.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'engines/agi/preagi.cpp') diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp index 67632bcd84..33a136e6a6 100644 --- a/engines/agi/preagi.cpp +++ b/engines/agi/preagi.cpp @@ -178,15 +178,6 @@ void PreAgiEngine::initialize() { debugC(2, kDebugLevelMain, "Detect game"); - _loader = new AgiLoader_preagi(this); - - if (_loader->detectGame() == errOK) { - _game.state = STATE_LOADED; - debugC(2, kDebugLevelMain, "game loaded"); - } else { - report("Could not open PreAGI game"); - } - /* clear all resources and events */ for (int i = 0; i < MAX_DIRS; i++) { memset(&_game.pictures[i], 0, sizeof(struct AgiPicture)); @@ -195,9 +186,6 @@ void PreAgiEngine::initialize() { memset(&_game.dirSound[i], 0, sizeof(struct AgiDir)); } - // load resources - _loader->init(); - debugC(2, kDebugLevelMain, "Init sound"); } @@ -252,12 +240,4 @@ int PreAgiEngine::go() { return 0; } -int PreAgiEngine::preAgiLoadResource(int r, int n) { - return _loader->loadResource(r, n); -} - -int PreAgiEngine::preAgiUnloadResource(int r, int n) { - return _loader->unloadResource(r, n); -} - } // End of namespace Agi -- cgit v1.2.3