diff options
Diffstat (limited to 'engines/agi/preagi.cpp')
-rw-r--r-- | engines/agi/preagi.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
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 |