1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Dump hires textures cache to file right after load from texture pack.

It is more safe than dump when emulator closed.

Fixed Texture cache fails to save to disk #1761
This commit is contained in:
Sergey Lipskiy 2018-05-02 13:15:42 +07:00
parent 035f76e7d3
commit 2ef337223e

View File

@ -86,8 +86,10 @@ TxHiResCache::TxHiResCache(int maxwidth,
}
/* read in hires textures */
if (!_cacheDumped)
TxHiResCache::load(0);
if (!_cacheDumped) {
if (TxHiResCache::load(0) && (_options & DUMP_HIRESTEXCACHE) != 0)
_cacheDumped = TxCache::save(_cachePath.c_str(), _getFileName().c_str(), _getConfig());
}
}
void TxHiResCache::dump()