Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
This commit is contained in:
parent
26e0ec1d24
commit
3d5b5f2ad8
17 changed files with 81 additions and 81 deletions
|
@ -1125,7 +1125,7 @@ void ScummEngine::addObjectToInventory(uint obj, uint room) {
|
|||
|
||||
slot = getInventorySlot();
|
||||
_inventory[slot] = obj;
|
||||
dst = createResource(rtInventory, slot, size);
|
||||
dst = res.createResource(rtInventory, slot, size);
|
||||
assert(dst);
|
||||
memcpy(dst, ptr, size);
|
||||
|
||||
|
@ -1661,7 +1661,7 @@ void ScummEngine::loadFlObject(uint object, uint room) {
|
|||
|
||||
// Allocate slot & memory for floating object
|
||||
slot = findFlObjectSlot();
|
||||
flob = createResource(rtFlObject, slot, flob_size);
|
||||
flob = res.createResource(rtFlObject, slot, flob_size);
|
||||
assert(flob);
|
||||
|
||||
// Copy object code + object image to floating object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue