mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use HasExtension method instead of string.EndsWith.
This commit is contained in:
@@ -68,7 +68,7 @@ namespace GameRes.Formats.NScripter
|
||||
}
|
||||
catch { /* ignore parse errors */ }
|
||||
}
|
||||
if (!file.Name.EndsWith (".ns2", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".ns2"))
|
||||
return null;
|
||||
|
||||
var password = QueryPassword();
|
||||
|
||||
Reference in New Issue
Block a user