TOLTECS: Rewrote ArchiveReader::dump() to use Common::DumpFile()

This commit is contained in:
Filippos Karapetis 2010-12-05 15:30:19 +00:00 committed by Willem Jan Palenstijn
parent 75842b031f
commit 3f78e1c8d9

View file

@ -77,11 +77,10 @@ void ArchiveReader::dump(uint resIndex, const char *prefix) {
read(data, resourceSize);
closeResource();
#if 0
FILE *o = fopen(fn, "wb");
fwrite(data, resourceSize, 1, o);
fclose(o);
#endif
Common::DumpFile o;
o.open(fn);
o.write(data, resourceSize);
o.close();
delete[] data;
}