improved open function in File class
svn-id: r4945
This commit is contained in:
parent
37d7a52c47
commit
f7ff5c67fa
12 changed files with 106 additions and 158 deletions
|
@ -871,9 +871,9 @@ void Scumm::dumpResource(char *tag, int idx, byte *ptr)
|
|||
sprintf(buf, "dumps/%s%d.dmp", tag, idx);
|
||||
#endif
|
||||
|
||||
out.open(buf, 1);
|
||||
out.open(buf, "", 1);
|
||||
if (out.isOpen() == false) {
|
||||
out.open(buf, 2);
|
||||
out.open(buf, "", 2);
|
||||
if (out.isOpen() == false)
|
||||
return;
|
||||
out.write(ptr, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue