mirror of
https://github.com/kwsch/pkNX.git
synced 2026-06-02 22:34:58 -05:00
Ignore case on romfs/exefs path names
This commit is contained in:
parent
62a9404b65
commit
1b5a69efe3
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user