mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-30 08:24:05 +00:00
parent
1a711257ed
commit
37c09949b3
|
@ -10,7 +10,7 @@ TxHiResNoCache::TxHiResNoCache(int maxwidth,
|
|||
int options,
|
||||
const wchar_t *cachePath,
|
||||
const wchar_t *texPackPath,
|
||||
const wchar_t *fullTexPath,
|
||||
const wchar_t *fullTexPath,
|
||||
const wchar_t *ident,
|
||||
dispInfoFuncExt callback)
|
||||
: TxHiResLoader(maxwidth, maxheight, maxbpp, options)
|
||||
|
@ -86,10 +86,13 @@ bool TxHiResNoCache::get(Checksum checksum, N64FormatSize n64FmtSz, GHQTexInfo *
|
|||
}
|
||||
return _loadedTex.end();
|
||||
};
|
||||
if (auto loadedTexMap = findTex(checksum); loadedTexMap != _loadedTex.end()) {
|
||||
DBG_INFO(80, wst("TxNoCache::get: cached chksum:%08X %08X found\n"), chksum, palchksum);
|
||||
*info = loadedTexMap->second;
|
||||
return true;
|
||||
{
|
||||
auto loadedTexMap = findTex(checksum);
|
||||
if (loadedTexMap != _loadedTex.end()) {
|
||||
DBG_INFO(80, wst("TxNoCache::get: cached chksum:%08X %08X found\n"), chksum, palchksum);
|
||||
*info = loadedTexMap->second;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
DBG_INFO(80, wst("TxNoCache::get: loading chksum:%08X %08X\n"), chksum, palchksum);
|
||||
|
|
Loading…
Reference in New Issue
Block a user