diff options
author | Max Horn | 2004-06-27 21:30:33 +0000 |
---|---|---|
committer | Max Horn | 2004-06-27 21:30:33 +0000 |
commit | a1b82d8e13ca41834c494839c2a05ae7638a38c3 (patch) | |
tree | fb4b281fd195265035cbb1751dbdcc71b9216f8e /saga/script.cpp | |
parent | 4b2d86392473184211a41e2fdc8a5d8188a4e636 (diff) | |
download | scummvm-rg350-a1b82d8e13ca41834c494839c2a05ae7638a38c3.tar.gz scummvm-rg350-a1b82d8e13ca41834c494839c2a05ae7638a38c3.tar.bz2 scummvm-rg350-a1b82d8e13ca41834c494839c2a05ae7638a38c3.zip |
Cleanup for MemoryReadStream; made it match the File-class interface
svn-id: r14086
Diffstat (limited to 'saga/script.cpp')
-rw-r--r-- | saga/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/saga/script.cpp b/saga/script.cpp index 925addc3be..a449ac6934 100644 --- a/saga/script.cpp +++ b/saga/script.cpp @@ -104,12 +104,12 @@ int SCRIPT_Init() { // Convert LUT resource to logical LUT MemoryReadStream *readS = new MemoryReadStream(rsc_ptr, rsc_len); for (i = 0; i < ScriptModule.script_lut_max; i++) { - prevTell = readS->tell(); + prevTell = readS->pos(); ScriptModule.script_lut[i].script_rn = readS->readUint16LE(); ScriptModule.script_lut[i].diag_list_rn = readS->readUint16LE(); ScriptModule.script_lut[i].voice_lut_rn = readS->readUint16LE(); // Skip the unused portion of the structure - for (j = readS->tell(); j < prevTell + ScriptModule.script_lut_entrylen; j++) + for (j = readS->pos(); j < prevTell + ScriptModule.script_lut_entrylen; j++) readS->readByte(); } @@ -365,7 +365,7 @@ R_SCRIPT_BYTECODE *SCRIPT_LoadBytecode(byte *bytecode_p, size_t bytecode_len) { // Read in the entrypoint table - while (readS->tell() < ep_tbl_offset) + while (readS->pos() < ep_tbl_offset) readS->readByte(); for (i = 0; i < n_entrypoints; i++) { @@ -439,7 +439,7 @@ R_DIALOGUE_LIST *SCRIPT_LoadDialogue(const byte *dialogue_p, size_t dialogue_len } // Read in tables from dialogue list resource - readS->rewind(); + readS->seek(0); for (i = 0; i < n_dialogue; i++) { offset = readS->readUint16LE(); if (offset > dialogue_len) { |