mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
Stopping the seek() going into the header
svn-id: r41798
This commit is contained in:
parent
fcddd5c69a
commit
96c13416f1
@ -107,6 +107,12 @@ bool Script::seek(int32 offset, int whence) {
|
||||
if ((offset < 0) || (((uint32) offset) >= _totSize))
|
||||
return false;
|
||||
|
||||
// Cannot seek into the header
|
||||
if (offset < 128) {
|
||||
_finished = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// A successful seek means the script file continues to be executed
|
||||
_finished = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user