Adding support for detecting .bin images

This commit is contained in:
Zopolis4 2021-07-21 02:18:44 +10:00
parent bc3c3eb79a
commit 494e2c05c2
No known key found for this signature in database
GPG key ID: C1117D56FBC82774
7 changed files with 17 additions and 15 deletions

View file

@ -26,14 +26,14 @@
namespace UICommon
{
static constexpr u32 CACHE_REVISION = 25; // Last changed in PR 12702
static constexpr u32 CACHE_REVISION = 26; // Last changed in PR 10084
std::vector<std::string> FindAllGamePaths(const std::vector<std::string>& directories_to_scan,
bool recursive_scan)
{
static const std::vector<std::string> search_extensions = {
".gcm", ".tgc", ".iso", ".ciso", ".gcz", ".wbfs", ".wia",
".rvz", ".nfs", ".wad", ".dol", ".elf", ".json"};
".gcm", ".tgc", ".bin", ".iso", ".ciso", ".gcz", ".wbfs",
".wia", ".rvz", ".nfs", ".wad", ".dol", ".elf", ".json"};
// TODO: We could process paths iteratively as they are found
return Common::DoFileSearch(directories_to_scan, search_extensions, recursive_scan);