From e10271e18ba396faab23d8eb446d33d7001c2098 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 12 Mar 2021 03:06:10 +1000 Subject: [PATCH] GameList: Allow webp covers Currently only enabled for Qt/Android, nogui lacks a decoder. --- src/frontend-common/game_list.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend-common/game_list.cpp b/src/frontend-common/game_list.cpp index f5f37752e..a45592ceb 100644 --- a/src/frontend-common/game_list.cpp +++ b/src/frontend-common/game_list.cpp @@ -5,6 +5,7 @@ #include "common/file_system.h" #include "common/iso_reader.h" #include "common/log.h" +#include "common/make_array.h" #include "common/progress_callback.h" #include "common/string_util.h" #include "core/bios.h" @@ -1172,7 +1173,7 @@ void GameList::UpdateGameSettings(const std::string& filename, const std::string std::string GameList::GetCoverImagePathForEntry(const GameListEntry* entry) const { - static constexpr std::array extensions = {{"jpg", "jpeg", "png"}}; + static constexpr auto extensions = make_array("jpg", "jpeg", "png", "webp"); PathString cover_path; for (const char* extension : extensions)