Skip to content

Commit

Permalink
DIRECTOR: Check if file is open, rename dump folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Iskrich authored and sev- committed Aug 3, 2016
1 parent bc2e73c commit cd0e04f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engines/director/score.cpp
Expand Up @@ -259,9 +259,12 @@ void Score::dumpScript(uint16 id, scriptType type, Common::String script) {
break;
}

sprintf(buf, "./dump/%s-%s-%d.txt", _macName.c_str(), typeName.c_str(), id);
sprintf(buf, "./dumps/%s-%s-%d.txt", _macName.c_str(), typeName.c_str(), id);

out.open(buf);
if (!out.open(buf)) {
warning("Can not open dump file %s", buf);
return;
}
out.writeString(script);

out.flush();
Expand Down

0 comments on commit cd0e04f

Please sign in to comment.