aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/file.h
diff options
context:
space:
mode:
authorColin Snover2016-12-18 17:42:07 -0600
committerColin Snover2016-12-18 19:03:30 -0600
commitdf38f24c77bac3b1a8958a1bac301d82a43c35c4 (patch)
treec71af0eb7f7bc4e9926f816e353ded6608f5488c /engines/sci/engine/file.h
parent0015f397428d2f59e393801aa03b9c9b2c84a443 (diff)
downloadscummvm-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.h2
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