diff options
author | Max Horn | 2007-03-19 12:52:18 +0000 |
---|---|---|
committer | Max Horn | 2007-03-19 12:52:18 +0000 |
commit | b7eb659e06ea37c660fdc6665e69a0b6701901d1 (patch) | |
tree | 4288fcbb5051078e3c6faf77ce0ccab9dd6f0a30 /engines/gob/inter_v1.cpp | |
parent | 3e85ecbe5fd184c21cf3734912b1c9a95ef13cd2 (diff) | |
download | scummvm-rg350-b7eb659e06ea37c660fdc6665e69a0b6701901d1.tar.gz scummvm-rg350-b7eb659e06ea37c660fdc6665e69a0b6701901d1.tar.bz2 scummvm-rg350-b7eb659e06ea37c660fdc6665e69a0b6701901d1.zip |
Added FIXME note into the gob code (it tries to write into datafiles, which makes it unportable to devices with read-only gamedata storage)
svn-id: r26240
Diffstat (limited to 'engines/gob/inter_v1.cpp')
-rw-r--r-- | engines/gob/inter_v1.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index c6e898f3a3..045fa9007b 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -1007,6 +1007,12 @@ bool Inter_v1::o1_writeData(char &cmdCount, int16 &counter, int16 &retFlag) { int16 dataVar; int16 retSize; + // FIXME: This code tries to write to a file. But this is not portable + // as datafiles might not be writeable. So we should determine when + // precisely this function is used, and see if we can either change it + // to a no-op, or use the SaveFileManager instead. If we use savefiles, + // then corresponding read etc. file calls would have to be adapted, too. + evalExpr(0); dataVar = _vm->_parse->parseVarIndex(); size = _vm->_parse->parseValExpr(); |