mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
[Android] Make sure the file extension check isn't case sensitive
This commit is contained in:
parent
265c6408d6
commit
b57cb30c41
@ -45,7 +45,7 @@ public class FileListItem implements Comparable<FileListItem>
|
|||||||
Set<String> allowedExtensions = new HashSet<String>(Arrays.asList(".dff", ".dol", ".elf", ".gcm", ".gcz", ".iso", ".wad", ".wbfs"));
|
Set<String> allowedExtensions = new HashSet<String>(Arrays.asList(".dff", ".dol", ".elf", ".gcm", ".gcz", ".iso", ".wad", ".wbfs"));
|
||||||
|
|
||||||
// Check that the file has an extension we care about before trying to read out of it.
|
// Check that the file has an extension we care about before trying to read out of it.
|
||||||
if (allowedExtensions.contains(fileExtension))
|
if (allowedExtensions.contains(fileExtension.toLowerCase()))
|
||||||
{
|
{
|
||||||
// Add 1 because 0 = TYPE_FOLDER
|
// Add 1 because 0 = TYPE_FOLDER
|
||||||
mType = NativeLibrary.GetPlatform(mPath) + 1;
|
mType = NativeLibrary.GetPlatform(mPath) + 1;
|
||||||
|
@ -181,7 +181,7 @@ public final class GameDatabase extends SQLiteOpenHelper
|
|||||||
String fileExtension = filePath.substring(extensionStart);
|
String fileExtension = filePath.substring(extensionStart);
|
||||||
|
|
||||||
// Check that the file has an extension we care about before trying to read out of it.
|
// Check that the file has an extension we care about before trying to read out of it.
|
||||||
if (allowedExtensions.contains(fileExtension))
|
if (allowedExtensions.contains(fileExtension.toLowerCase()))
|
||||||
{
|
{
|
||||||
String name = NativeLibrary.GetTitle(filePath);
|
String name = NativeLibrary.GetTitle(filePath);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user