aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 8a43738e1f..57131d980f 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -586,7 +586,9 @@ bool Console::cmdDiskDump(int argc, const char **argv) {
Common::DumpFile *outFile = new Common::DumpFile();
outFile->open(outFileName);
outFile->writeByte(res);
- outFile->writeByte(0);
+ outFile->writeByte(resource->headerSize);
+ if (resource->headerSize > 0)
+ outFile->write(resource->header, resource->headerSize);
outFile->write(resource->data, resource->size);
outFile->finalize();
outFile->close();