TOLTECS: Rewrote ArchiveReader::dump() to use Common::DumpFile()
This commit is contained in:
parent
75842b031f
commit
3f78e1c8d9
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue