diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-07-30 10:31:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-30 10:31:45 +0200 |
| commit | a35f5e6f7595ac8b21f6117a1733654be4d6be9e (patch) | |
| tree | 9beda711a1c742ef302950b56c10f0793cca98b3 /Source/Core/UICommon/GameFileCache.cpp | |
| parent | ae0748ab078c1853c9e74ed8ebe729e44b6b03a2 (diff) | |
| parent | 8fb3085b0778ccdb90fdca91a7600b89db518b3b (diff) | |
Merge pull request #7293 from spycrab/qt_cover2
Revert "Revert "Qt/GameList: Add option to show covers in grid mode""
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/Core/UICommon/GameFileCache.cpp b/Source/Core/UICommon/GameFileCache.cpp index 074dc7fe62..82ade8e964 100644 --- a/Source/Core/UICommon/GameFileCache.cpp +++ b/Source/Core/UICommon/GameFileCache.cpp @@ -27,7 +27,7 @@ namespace UICommon { -static constexpr u32 CACHE_REVISION = 11; // Last changed in PR 7058 +static constexpr u32 CACHE_REVISION = 12; // Last changed in PR 7285 std::vector<std::string> FindAllGamePaths(const std::vector<std::string>& directories_to_scan, bool recursive_scan) @@ -165,7 +165,14 @@ bool GameFileCache::UpdateAdditionalMetadata(std::shared_ptr<GameFile>* game_fil { const bool wii_banner_changed = (*game_file)->WiiBannerChanged(); const bool custom_banner_changed = (*game_file)->CustomBannerChanged(); - if (!wii_banner_changed && !custom_banner_changed) + + (*game_file)->DownloadDefaultCover(); + + const bool default_cover_changed = (*game_file)->DefaultCoverChanged(); + const bool custom_cover_changed = (*game_file)->CustomCoverChanged(); + + if (!wii_banner_changed && !custom_banner_changed && !default_cover_changed && + !custom_cover_changed) return false; // If a cached file needs an update, apply the updates to a copy and delete the original. @@ -176,6 +183,11 @@ bool GameFileCache::UpdateAdditionalMetadata(std::shared_ptr<GameFile>* game_fil copy->WiiBannerCommit(); if (custom_banner_changed) copy->CustomBannerCommit(); + if (default_cover_changed) + copy->DefaultCoverCommit(); + if (custom_cover_changed) + copy->CustomCoverCommit(); + *game_file = std::move(copy); return true; |
