2019-11-11 00:11:59 -05:00
|
|
|
#include "PLResources.h"
|
|
|
|
|
|
2019-12-11 00:51:42 -05:00
|
|
|
#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"
|
|
|
|
|
|
2019-12-11 00:51:42 -05:00
|
|
|
#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();
|
2020-01-18 08:37:57 -05:00
|
|
|
const PortabilityLayer::ResourceArchiveRef *resRef = hBlock->m_rmSelfRef;
|
|
|
|
|
return resRef->m_size;
|
2019-11-11 00:11:59 -05:00
|
|
|
}
|