- additional fixes for last commit

This commit is contained in:
Fledge68 2019-03-27 18:29:34 -05:00
parent 90fd389aac
commit b7f4675c62
2 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -2834,6 +2834,9 @@ CCoverFlow::CLRet CCoverFlow::_loadCoverTex(u32 i, bool box, bool hq, bool blank
if(box && m_smallBox)// prevent smallbox from loading full box cover if(box && m_smallBox)// prevent smallbox from loading full box cover
return CL_ERROR; return CL_ERROR;
if(blankBoxCover && m_items[i].hdr->type == TYPE_SOURCE)// blank covers not used for sourceflow
return CL_ERROR;
bool allocFailed = false; bool allocFailed = false;
/* try to find the wfc texture file in the cache folder */ /* try to find the wfc texture file in the cache folder */
@ -2860,9 +2863,9 @@ CCoverFlow::CLRet CCoverFlow::_loadCoverTex(u32 i, bool box, bool hq, bool blank
strncpy(wfcTitle, getFilenameId(m_items[i].hdr), sizeof(wfcTitle) - 1); strncpy(wfcTitle, getFilenameId(m_items[i].hdr), sizeof(wfcTitle) - 1);
/* get coverfolder for plugins, sourceflow, and homebrew */ /* get coverfolder for plugins, sourceflow, and homebrew */
if(m_items[i].hdr->type == TYPE_PLUGIN && m_pluginCacheFolders && !blankBoxCover) if(m_items[i].hdr->type == TYPE_PLUGIN && m_pluginCacheFolders)
wfcCoverDir = m_plugin.GetCoverFolderName(m_items[i].hdr->settings[0]); wfcCoverDir = m_plugin.GetCoverFolderName(m_items[i].hdr->settings[0]);
if(m_items[i].hdr->type == TYPE_SOURCE && !blankBoxCover) if(m_items[i].hdr->type == TYPE_SOURCE)
wfcCoverDir = "sourceflow"; wfcCoverDir = "sourceflow";
if(m_items[i].hdr->type == TYPE_HOMEBREW) if(m_items[i].hdr->type == TYPE_HOMEBREW)
wfcCoverDir = "homebrew"; wfcCoverDir = "homebrew";