mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 02:38:32 +00:00
TWINE: fixed dumpfile command
This commit is contained in:
parent
ef8825f810
commit
f8b16991c9
@ -328,8 +328,8 @@ bool TwinEConsole::doDumpFile(int argc, const char **argv) {
|
||||
debugPrintf("Expected to get a a hqr file and an index\n");
|
||||
return true;
|
||||
}
|
||||
const char *hqr = argv[0];
|
||||
const int index = atoi(argv[1]);
|
||||
const char *hqr = argv[1];
|
||||
const int index = atoi(argv[2]);
|
||||
const Common::String &targetFileName = Common::String::format("dumps/%03i-%s.dump", index, hqr);
|
||||
HQR::dumpEntry(hqr, index, targetFileName.c_str());
|
||||
return true;
|
||||
|
@ -266,7 +266,7 @@ int32 getAllocEntry(uint8 **ptr, const char *filename, int32 index) {
|
||||
|
||||
bool dumpEntry(const char *filename, int32 index, const char *targetFileName) {
|
||||
Common::DumpFile out;
|
||||
if (!out.open(targetFileName)) {
|
||||
if (!out.open(targetFileName, true)) {
|
||||
warning("Failed to save to %s", targetFileName);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user