mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-22 09:51:55 +01:00
Only use header caching when in god mode
Because header caching doesn't filter categories or age restricted games.
This commit is contained in:
parent
64bfd820bb
commit
e6832e143c
@ -345,7 +345,7 @@ int GameList::FilterList(const wchar_t *gameFilter)
|
||||
}
|
||||
}
|
||||
|
||||
if (Settings.UseGameHeaderCache && allType == ENABLED && isCacheFile(FilteredListCacheFileName(gameFilter)))
|
||||
if (Settings.UseGameHeaderCache && allType == ENABLED && Settings.godmode && isCacheFile(FilteredListCacheFileName(gameFilter)))
|
||||
{
|
||||
LoadFilteredListCache(FilteredList, GameFilter.c_str());
|
||||
GuiSearchBar::FilterList(FilteredList, GameFilter);
|
||||
@ -374,7 +374,7 @@ int GameList::FilterList(const wchar_t *gameFilter)
|
||||
|
||||
SortList();
|
||||
|
||||
if (Settings.UseGameHeaderCache && allType == ENABLED && !FilteredList.empty() && (Settings.GameSort & SORT_RANKING) == 0 && (Settings.GameSort & SORT_PLAYCOUNT) == 0 && (Settings.GameSort & SORT_FAVORITE) == 0)
|
||||
if (Settings.UseGameHeaderCache && allType == ENABLED && Settings.godmode && !FilteredList.empty() && (Settings.GameSort & SORT_RANKING) == 0 && (Settings.GameSort & SORT_PLAYCOUNT) == 0 && (Settings.GameSort & SORT_FAVORITE) == 0)
|
||||
SaveFilteredListCache(FilteredList, GameFilter.c_str());
|
||||
|
||||
return FilteredList.size();
|
||||
|
Loading…
Reference in New Issue
Block a user