[Scummvm-git-logs] scummvm master -> 4719041b96e1fab45121fc22634daaef4dfbd30d
sev-
noreply at scummvm.org
Mon May 5 09:29:17 UTC 2025
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
19460ec8cb AWE: Implemented file dumping
4719041b96 AWE: Dump resources by --dump-scripts command line key
Commit: 19460ec8cb2b1b005c3ceb65bd1660cf2ad301c5
https://github.com/scummvm/scummvm/commit/19460ec8cb2b1b005c3ceb65bd1660cf2ad301c5
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-05-05T11:26:38+02:00
Commit Message:
AWE: Implemented file dumping
Changed paths:
engines/awe/resource.cpp
diff --git a/engines/awe/resource.cpp b/engines/awe/resource.cpp
index c35773a9e44..e308a170037 100644
--- a/engines/awe/resource.cpp
+++ b/engines/awe/resource.cpp
@@ -234,9 +234,17 @@ void Resource::dumpEntries() {
uint8 *p = (uint8 *)malloc(_memList[i].unpackedSize);
if (p) {
if (readBank(&_memList[i], p)) {
- char name[16];
- snprintf(name, sizeof(name), "data_%02x_%d", i, _memList[i].type);
- //dumpFile(name, p, _memList[i].unpackedSize);
+ Common::String fname = Common::String::format("dumps/data_%02x_%d", i, _memList[i].type);
+ Common::DumpFile out;
+
+ if (!out.open(fname.c_str(), true)) {
+ warning("Resource::dumpEntries(): Can not open dump file %s", fname.c_str());
+ } else {
+ out.write(p, _memList[i].unpackedSize);
+
+ out.flush();
+ out.close();
+ }
}
free(p);
}
Commit: 4719041b96e1fab45121fc22634daaef4dfbd30d
https://github.com/scummvm/scummvm/commit/4719041b96e1fab45121fc22634daaef4dfbd30d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-05-05T11:28:58+02:00
Commit Message:
AWE: Dump resources by --dump-scripts command line key
Changed paths:
engines/awe/resource.cpp
diff --git a/engines/awe/resource.cpp b/engines/awe/resource.cpp
index e308a170037..1f9d368fdab 100644
--- a/engines/awe/resource.cpp
+++ b/engines/awe/resource.cpp
@@ -222,8 +222,7 @@ void Resource::readEntriesAmiga(const AmigaMemEntry *entries, int count) {
}
void Resource::dumpEntries() {
- static const bool kDump = false;
- if (kDump && (_dataType == DT_DOS || _dataType == DT_AMIGA || _dataType == DT_ATARI)) {
+ if (ConfMan.getBool("dump_scripts") && (_dataType == DT_DOS || _dataType == DT_AMIGA || _dataType == DT_ATARI)) {
for (int i = 0; i < _numMemList; ++i) {
if (_memList[i].unpackedSize == 0) {
continue;
More information about the Scummvm-git-logs
mailing list