mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +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:
parent
035f76e7d3
commit
2ef337223e
|
@ -86,8 +86,10 @@ TxHiResCache::TxHiResCache(int maxwidth,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read in hires textures */
|
/* read in hires textures */
|
||||||
if (!_cacheDumped)
|
if (!_cacheDumped) {
|
||||||
TxHiResCache::load(0);
|
if (TxHiResCache::load(0) && (_options & DUMP_HIRESTEXCACHE) != 0)
|
||||||
|
_cacheDumped = TxCache::save(_cachePath.c_str(), _getFileName().c_str(), _getConfig());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TxHiResCache::dump()
|
void TxHiResCache::dump()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user