DraciEngine now opens and stores pointers to essential archives. Changed code that used those archives to use that instead of opening them manually. Replaced BArchive::operator[] functionality with BArchive::getFile() to prevent ugliness when accessing archives via pointers.

svn-id: r42031
This commit is contained in:
Denis Kasak 2009-07-02 16:15:32 +00:00
parent 936e5f4c5e
commit be3c0461d6
6 changed files with 56 additions and 37 deletions

View file

@ -90,7 +90,7 @@ void Mouse::setCursorType(CursorType cur) {
ar.openArchive(path);
if(ar.isOpen()) {
f = ar[_cursorType];
f = ar.getFile(_cursorType);
} else {
debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened - %s", path.c_str());
return;