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:
@@ -94,7 +94,7 @@ namespace GameRes.Formats.Rpm
|
||||
return null;
|
||||
var scheme = GuessScheme (file, count);
|
||||
// additional filename extension check avoids dialog popup on false positives
|
||||
if (null == scheme && KnownSchemes.Count > 0 && file.Name.EndsWith (".arc", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (null == scheme && KnownSchemes.Count > 0 && file.Name.HasExtension (".arc"))
|
||||
scheme = QueryScheme();
|
||||
if (null == scheme)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user