From ac247c9b94ec49dac4a5febf94bab2c76e7ed114 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 31 Mar 2005 21:39:31 +0000 Subject: Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx) svn-id: r17311 --- scumm/script_v100he.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm/script_v100he.cpp') diff --git a/scumm/script_v100he.cpp b/scumm/script_v100he.cpp index 30243d86f1..01e74a38a9 100644 --- a/scumm/script_v100he.cpp +++ b/scumm/script_v100he.cpp @@ -1128,16 +1128,16 @@ void ScummEngine_v100he::o100_resourceRoutines() { if (_heResType == rtFlObject) { objidx = getObjectIndex(_heResId); //assert(objidx != -1); - //lock(_heResType, objidx); + //res.lock(_heResType, objidx); } else { - lock(_heResType, _heResId); + res.lock(_heResType, _heResId); } break; case 133: if (_heResType == rtCharset) nukeCharset(_heResId); else - nukeResource(_heResType, _heResId); + res.nukeResource(_heResType, _heResId); break; case 134: case 135: @@ -1153,9 +1153,9 @@ void ScummEngine_v100he::o100_resourceRoutines() { if (_heResType == rtFlObject) { objidx = getObjectIndex(_heResId); //assert(objidx != -1); - //unlock(_heResType, objidx); + //res.unlock(_heResType, objidx); } else { - unlock(_heResType, _heResId); + res.unlock(_heResType, _heResId); } break; default: -- cgit v1.2.3