mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
Added a skipBlock() method
svn-id: r42122
This commit is contained in:
parent
e861fab808
commit
835dea71ce
@ -127,6 +127,10 @@ bool Script::skip(int32 offset) {
|
||||
return seek(offset, SEEK_CUR);
|
||||
}
|
||||
|
||||
bool Script::skipBlock() {
|
||||
return seek(peekUint16(2) + 2, SEEK_CUR);
|
||||
}
|
||||
|
||||
int32 Script::getOffset(byte *ptr) const {
|
||||
if (!_totData)
|
||||
return -1;
|
||||
|
@ -53,6 +53,7 @@ public:
|
||||
// Stream seeking
|
||||
bool seek(int32 offset, int whence = SEEK_SET);
|
||||
bool skip(int32 offset);
|
||||
bool skipBlock();
|
||||
|
||||
// Reading data
|
||||
byte readByte ();
|
||||
|
Loading…
Reference in New Issue
Block a user