From f8781408956e8e29a34a9bddd558c3c2b6592b6f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 23 Feb 2004 02:07:56 +0000 Subject: o Add GID_FBEARPACK, previously for target fbpack GID_FBEAR was used, but there were fbear-specific modifications which didn't apply to it. Hence another GID. o seekFile and tellFile are enabled svn-id: r13001 --- scumm/script_v6he.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'scumm/script_v6he.cpp') diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index 8f11ea478a..92c117c09f 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1137,7 +1137,7 @@ void ScummEngine_v6he::o6_seekFile() { offset = pop(); slot = pop(); - warning("stub o6_seekFile(%d, %d, %d)", slot, offset, mode); + debug(1, "o6_seekFile(%d, %d, %d)", slot, offset, mode); switch (mode) { case 1: @@ -1160,13 +1160,13 @@ void ScummEngine_v6he::seekWrapper(int slot, int offset, int mode) { switch (mode) { case 0: - // _hFileTable[slot].seek(offset, SEEK_SET); + _hFileTable[slot].seek(offset, SEEK_SET); break; case 1: - // _hFileTable[slot].seek(offset, SEEK_CUR); + _hFileTable[slot].seek(offset, SEEK_CUR); break; case 2: - // _hFileTable[slot].seek(offset, SEEK_END); + _hFileTable[slot].seek(offset, SEEK_END); break; } } @@ -1174,15 +1174,14 @@ void ScummEngine_v6he::seekWrapper(int slot, int offset, int mode) { void ScummEngine_v6he::o6_tellFile() { int slot = pop(); - warning("stub o6_tellFile(%d)", slot); + debug(1, "o6_tellFile(%d)", slot); if (slot == -1) { push(0); return; } - // push(_hFileTable[slot].tell()); - push(0); + push(_hFileTable[slot].pos()); } void ScummEngine_v6he::o6_redimArray() { -- cgit v1.2.3