diff options
author | Colin Snover | 2016-12-18 17:42:07 -0600 |
---|---|---|
committer | Colin Snover | 2016-12-18 19:03:30 -0600 |
commit | df38f24c77bac3b1a8958a1bac301d82a43c35c4 (patch) | |
tree | c71af0eb7f7bc4e9926f816e353ded6608f5488c /engines/sci/engine/file.h | |
parent | 0015f397428d2f59e393801aa03b9c9b2c84a443 (diff) | |
download | scummvm-rg350-df38f24c77bac3b1a8958a1bac301d82a43c35c4.tar.gz scummvm-rg350-df38f24c77bac3b1a8958a1bac301d82a43c35c4.tar.bz2 scummvm-rg350-df38f24c77bac3b1a8958a1bac301d82a43c35c4.zip |
SCI32: Fix handling of rewritable files opened with mode 1
In SSCI, all files opened through kFileIO are writable. Most of
the time this does not matter and the engine can get away with
using read-only streams, but when chase.dat is opened by Phant1
from the retry dialogue during the chase, it needs to be writable
because game code puts a '98' marker in the chase data. If this
write does not occur, the game gets stuck in a loop looking for
the marker.
Diffstat (limited to 'engines/sci/engine/file.h')
-rw-r--r-- | engines/sci/engine/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/file.h b/engines/sci/engine/file.h index 0154338f6c..1c9a092063 100644 --- a/engines/sci/engine/file.h +++ b/engines/sci/engine/file.h @@ -28,7 +28,7 @@ namespace Sci { -enum { +enum kFileOpenMode { _K_FILE_MODE_OPEN_OR_CREATE = 0, _K_FILE_MODE_OPEN_OR_FAIL = 1, _K_FILE_MODE_CREATE = 2 |