mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Android: Fix opening games with extensionless URI
This commit is contained in:
@ -158,6 +158,15 @@ BootParameters::GenerateFromFile(std::vector<std::string> paths,
|
||||
if (paths.size() == 1)
|
||||
paths.clear();
|
||||
|
||||
#ifdef ANDROID
|
||||
if (extension.empty() && IsPathAndroidContent(path))
|
||||
{
|
||||
const std::string display_name = GetAndroidContentDisplayName(path);
|
||||
SplitPath(display_name, nullptr, nullptr, &extension);
|
||||
std::transform(extension.begin(), extension.end(), extension.begin(), ::tolower);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const std::unordered_set<std::string> disc_image_extensions = {
|
||||
{".gcm", ".iso", ".tgc", ".wbfs", ".ciso", ".gcz", ".wia", ".rvz", ".dol", ".elf"}};
|
||||
if (disc_image_extensions.find(extension) != disc_image_extensions.end() || is_drive)
|
||||
|
Reference in New Issue
Block a user