Refactoring.
svn-id: r40210
This commit is contained in:
parent
4688811024
commit
3607c63758
5 changed files with 119 additions and 165 deletions
|
@ -423,18 +423,19 @@ void FixedTable::clear() {
|
|||
_used -= deleted;
|
||||
}
|
||||
|
||||
Table* createTableFromStream(uint32 size, Common::SeekableReadStream &stream) {
|
||||
Table* createTableFromStream(uint32 size, Common::SeekableReadStream *stream) {
|
||||
assert(stream);
|
||||
|
||||
Table *t = new Table(size);
|
||||
assert(t);
|
||||
|
||||
Script s(&stream, false);
|
||||
|
||||
Script s(stream, false);
|
||||
s.readLineToken();
|
||||
while (scumm_stricmp(_tokens[0], "ENDTABLE")) {
|
||||
t->addData(_tokens[0]);
|
||||
s.readLineToken();
|
||||
}
|
||||
|
||||
delete stream;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue