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

Clear hires texture cache if there was an error during load.

This commit is contained in:
Sergey Lipskiy 2017-11-05 11:56:35 +07:00
parent 9d149b33ed
commit ef56e0da7c

View File

@ -144,7 +144,11 @@ TxHiResCache::load(boolean replace) /* 0 : reload, 1 : replace partial */
dir_path += OSAL_DIR_SEPARATOR_STR;
dir_path += _ident;
loadHiResTextures(dir_path.c_str(), replace);
if (!loadHiResTextures(dir_path.c_str(), replace)) {
if (_callback) (*_callback)(wst("Texture pack load failed. Clear hiresolution texture cache.\n"));
INFO(80, wst("Texture pack load failed. Clear hiresolution texture cache.\n"));
_cache.clear();
}
break;
case JABO_HIRESTEXTURES:
;