mirror of
https://github.com/kwsch/pkNX.git
synced 2026-10-02 06:06:38 -05:00
Ignore case on romfs/exefs path names
This commit is contained in:
@@ -42,8 +42,8 @@ public static GameLocation GetGame(string dir)
|
||||
return null;
|
||||
|
||||
var dirs = Directory.GetDirectories(dir);
|
||||
var romfs = Array.Find(dirs, z => Path.GetFileName(z).StartsWith("rom"));
|
||||
var exefs = Array.Find(dirs, z => Path.GetFileName(z).StartsWith("exe"));
|
||||
var romfs = Array.Find(dirs, z => Path.GetFileName(z).StartsWith("rom", StringComparison.CurrentCultureIgnoreCase));
|
||||
var exefs = Array.Find(dirs, z => Path.GetFileName(z).StartsWith("exe", StringComparison.CurrentCultureIgnoreCase));
|
||||
|
||||
if (romfs == null || exefs == null)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user