aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.h
diff options
context:
space:
mode:
authorFilippos Karapetis2010-07-02 10:18:11 +0000
committerFilippos Karapetis2010-07-02 10:18:11 +0000
commit79768098b13e20bade076b8a36c9d8cd16514b2a (patch)
tree03f37ecfc7a9d54a58b32dc895ea58795bbcd617 /engines/sci/resource.h
parent7b6be52f227aeaf2b544b3b35dd872f3643b1ff4 (diff)
downloadscummvm-rg350-79768098b13e20bade076b8a36c9d8cd16514b2a.tar.gz
scummvm-rg350-79768098b13e20bade076b8a36c9d8cd16514b2a.tar.bz2
scummvm-rg350-79768098b13e20bade076b8a36c9d8cd16514b2a.zip
Added handling for kLock called with resource id -1 (unlock all resources of the requested type). Happens e.g. in KQ6 and LSL6
svn-id: r50595
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r--engines/sci/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h
index a13781b157..f66b5b3956 100644
--- a/engines/sci/resource.h
+++ b/engines/sci/resource.h
@@ -210,7 +210,7 @@ public:
inline ResourceType getType() const { return _id.getType(); }
inline uint16 getNumber() const { return _id.getNumber(); }
-
+ bool isLocked() const { return _status == kResStatusLocked; }
/**
* Write the resource to the specified stream.
* This method is used only by the "dump" debugger command.