mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add support for unpackaged resources to speed up loads on Android, i.e. so we don't have to decompress entire GPAs to load a single resource.
This commit is contained in:
@@ -19,6 +19,7 @@ namespace PortabilityLayer
|
||||
bool operator!=(const ResTypeID &other) const;
|
||||
|
||||
void ExportAsChars(char *chars) const;
|
||||
int32_t ExportAsInt32() const;
|
||||
|
||||
private:
|
||||
char m_id[4];
|
||||
@@ -70,6 +71,11 @@ namespace PortabilityLayer
|
||||
{
|
||||
memcpy(chars, m_id, 4);
|
||||
}
|
||||
|
||||
inline int32_t ResTypeID::ExportAsInt32() const
|
||||
{
|
||||
return ResTypeIDCodec::Decode(m_id);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user