2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-05 18:15:36 +00:00

Cache bug fix

This commit is contained in:
Jack Andersen 2015-11-15 18:42:32 -10:00
parent 6ae4f6ed11
commit 6b6617303b

View File

@ -291,7 +291,7 @@ bool ShaderCacheManager::addData(const ShaderCachedData& data)
if (!targetOffset)
{
/* New index entry at end */
idxFw.seek(16, Athena::Begin);
idxFw.seek(24, Athena::Begin);
idxFw.writeUint64Big(m_entries.size() + 1);
idxFw.seek(m_entries.size() * 32 + 32, Athena::Begin);
datFw.seek(0, Athena::End);