GameList: Allow webp covers

Currently only enabled for Qt/Android, nogui lacks a decoder.
This commit is contained in:
Connor McLaughlin 2021-03-12 03:06:10 +10:00
parent 7241876cc7
commit e10271e18b
1 changed files with 2 additions and 1 deletions

View File

@ -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<const char*, 3> extensions = {{"jpg", "jpeg", "png"}};
static constexpr auto extensions = make_array("jpg", "jpeg", "png", "webp");
PathString cover_path;
for (const char* extension : extensions)