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:
parent
936e5f4c5e
commit
be3c0461d6
6 changed files with 56 additions and 37 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue