Files
Aerofoil/PortabilityLayer/PLResources.cpp

18 lines
390 B
C++
Raw Normal View History

2019-11-11 00:11:59 -05:00
#include "PLResources.h"
#include "MemoryManager.h"
2019-11-11 00:11:59 -05:00
#include "MMHandleBlock.h"
2019-12-12 23:37:40 -05:00
#include "PLPasStr.h"
2019-11-11 00:11:59 -05:00
#include "ResourceManager.h"
#include "ResourceCompiledRef.h"
#include <assert.h>
2019-11-11 00:11:59 -05:00
long GetMaxResourceSize(Handle res)
{
2019-12-29 23:14:37 -05:00
const PortabilityLayer::MMHandleBlock *hBlock = res.MMBlock();
const PortabilityLayer::ResourceArchiveRef *resRef = hBlock->m_rmSelfRef;
return resRef->m_size;
2019-11-11 00:11:59 -05:00
}