Skip to content

Non Library Resource Name Hashing

Pavle edited this page Feb 27, 2021 · 2 revisions
idResource->m_uri->ToLower(&idLibrary.m_uri);
unsigned __int64 hash = Compute64bitsMD5(v2);
bool isLibrary = idResource->IsLibrary();
idLibrary.m_uri.m_chars = 0;

ZRuntimeResourceID *result;

if (isLibrary)
{
    result->m_IDHigh = 0x40000000;
}
else
{
    result->m_IDHigh = hash & 0xFFFFFF;
}

Clone this wiki locally