public void ResClose(uint id)
{
MemHandle handle = ResHandle(id);
if (handle == null)
return;
if (handle.refCount == 0)
{
// TODO: warning("Resource Manager fail: unlocking object with refCount 0. Id: %d", id);
}
else
{
handle.refCount--;
if (handle.refCount == 0)
{
_memMan.SetCondition(handle, MemMan.MEM_CAN_FREE);
}
}
}