GOB: Clean up class DataIO

Removing the need for class DataStream and that handle mess.

svn-id: r53984
This commit is contained in:
Sven Hesse 2010-10-31 20:07:14 +00:00
parent 88892dc982
commit 16a3cc8a84
20 changed files with 446 additions and 774 deletions

View file

@ -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);
}