mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-13 19:49:36 +00:00
Add name-to-comment support to GPAs
This commit is contained in:
@@ -20,6 +20,7 @@ namespace PortabilityLayer
|
||||
, m_numResources(0)
|
||||
, m_compiledTypeListBlob(nullptr)
|
||||
, m_numResourceTypes(0)
|
||||
, m_nameListOffset(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -343,6 +344,16 @@ namespace PortabilityLayer
|
||||
outCount = m_numResourceTypes;
|
||||
}
|
||||
|
||||
const uint8_t *ResourceFile::GetResNames() const
|
||||
{
|
||||
return m_resNameBlob;
|
||||
}
|
||||
|
||||
const size_t ResourceFile::GetResNamesSize() const
|
||||
{
|
||||
return m_resNameBlobSize;
|
||||
}
|
||||
|
||||
const ResourceCompiledTypeList *ResourceFile::GetResourceTypeList(const ResTypeID &resType)
|
||||
{
|
||||
const ResourceCompiledTypeList *tlStart = m_compiledTypeListBlob;
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace PortabilityLayer
|
||||
|
||||
void GetAllResourceTypeLists(ResourceCompiledTypeList *&outTypeLists, size_t &outCount) const;
|
||||
|
||||
const uint8_t *GetResNames() const;
|
||||
const size_t GetResNamesSize() const;
|
||||
|
||||
const ResourceCompiledTypeList *GetResourceTypeList(const ResTypeID &resType);
|
||||
THandle<void> LoadResource(const ResTypeID &resType, int id);
|
||||
|
||||
@@ -43,6 +46,8 @@ namespace PortabilityLayer
|
||||
ResourceCompiledTypeList *m_compiledTypeListBlob;
|
||||
size_t m_numResourceTypes;
|
||||
|
||||
uint32_t m_nameListOffset;
|
||||
|
||||
static bool CompiledRefSortPredicate(const ResourceCompiledRef &a, const ResourceCompiledRef &b);
|
||||
static bool CompiledTypeListSortPredicate(const ResourceCompiledTypeList &a, const ResourceCompiledTypeList &b);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user