mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Don't use game header caching for categories
This commit is contained in:
parent
7e56d8f4ba
commit
e25c4e5b4a
@ -334,7 +334,18 @@ int GameList::FilterList(const wchar_t *gameFilter)
|
|||||||
|
|
||||||
FilteredList.clear();
|
FilteredList.clear();
|
||||||
|
|
||||||
if (Settings.UseGameHeaderCache && isCacheFile(FilteredListCacheFileName(gameFilter)))
|
int allType = DISABLED;
|
||||||
|
// Verify the display mode for category "All"
|
||||||
|
for (u32 n = 0; n < Settings.EnabledCategories.size(); ++n)
|
||||||
|
{
|
||||||
|
if (Settings.EnabledCategories[n] == 0)
|
||||||
|
{
|
||||||
|
allType = ENABLED;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Settings.UseGameHeaderCache && allType == ENABLED && isCacheFile(FilteredListCacheFileName(gameFilter)))
|
||||||
{
|
{
|
||||||
LoadFilteredListCache(FilteredList, GameFilter.c_str());
|
LoadFilteredListCache(FilteredList, GameFilter.c_str());
|
||||||
GuiSearchBar::FilterList(FilteredList, GameFilter);
|
GuiSearchBar::FilterList(FilteredList, GameFilter);
|
||||||
@ -363,7 +374,7 @@ int GameList::FilterList(const wchar_t *gameFilter)
|
|||||||
|
|
||||||
SortList();
|
SortList();
|
||||||
|
|
||||||
if (Settings.UseGameHeaderCache && !FilteredList.empty() && (Settings.GameSort & SORT_RANKING) == 0 && (Settings.GameSort & SORT_PLAYCOUNT) == 0 && (Settings.GameSort & SORT_FAVORITE) == 0)
|
if (Settings.UseGameHeaderCache && allType == ENABLED && !FilteredList.empty() && (Settings.GameSort & SORT_RANKING) == 0 && (Settings.GameSort & SORT_PLAYCOUNT) == 0 && (Settings.GameSort & SORT_FAVORITE) == 0)
|
||||||
SaveFilteredListCache(FilteredList, GameFilter.c_str());
|
SaveFilteredListCache(FilteredList, GameFilter.c_str());
|
||||||
|
|
||||||
return FilteredList.size();
|
return FilteredList.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user