diff options
| author | Filippos Karapetis | 2010-01-28 08:17:46 +0000 | 
|---|---|---|
| committer | Filippos Karapetis | 2010-01-28 08:17:46 +0000 | 
| commit | 1e6123ce89e306249f2c80d7afc13418dea70c37 (patch) | |
| tree | 9be7c75bb186e361306c3323fd68b3e768581add | |
| parent | 9a85b1284b088b6a07afcc848f66be361025ed8d (diff) | |
| download | scummvm-rg350-1e6123ce89e306249f2c80d7afc13418dea70c37.tar.gz scummvm-rg350-1e6123ce89e306249f2c80d7afc13418dea70c37.tar.bz2 scummvm-rg350-1e6123ce89e306249f2c80d7afc13418dea70c37.zip | |
Improved the diskdump command so that it also writes the resource header, if it exists (e.g. in SOL audio files)
svn-id: r47630
| -rw-r--r-- | engines/sci/console.cpp | 4 | 
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(); | 
