GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess. svn-id: r53984
This commit is contained in:
parent
88892dc982
commit
16a3cc8a84
20 changed files with 446 additions and 774 deletions
|
@ -639,10 +639,11 @@ void Draw::wobble(Surface &surfDesc) {
|
|||
}
|
||||
|
||||
Font *Draw::loadFont(const char *path) const {
|
||||
if (!_vm->_dataIO->existData(path))
|
||||
if (!_vm->_dataIO->hasFile(path))
|
||||
return 0;
|
||||
|
||||
byte *data = _vm->_dataIO->getData(path);
|
||||
int32 size;
|
||||
byte *data = _vm->_dataIO->getFile(path, size);
|
||||
|
||||
return new Font(data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue