aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/part.cpp')
-rw-r--r--engines/cine/part.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/cine/part.cpp b/engines/cine/part.cpp
index 7eb05ff22d..99d1109c2b 100644
--- a/engines/cine/part.cpp
+++ b/engines/cine/part.cpp
@@ -437,4 +437,24 @@ byte *readFile(const char *filename) {
return dataPtr;
}
+void dumpBundle(const char *fileName) {
+ char tmpPart[15];
+
+ strcpy(tmpPart, currentPartName);
+
+ loadPart(fileName);
+ for (int i = 0; i < numElementInPart; i++) {
+ byte *data = readBundleFile(i);
+
+ Common::File out;
+
+ debug(0, "%s", partBuffer[i].partName);
+ out.open(Common::String("dumps/") + partBuffer[i].partName, Common::File::kFileWriteMode);
+ out.write(data, partBuffer[i].unpackedSize);
+ out.close();
+ }
+
+ loadPart(tmpPart);
+}
+
} // End of namespace Cine