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:
@@ -275,8 +275,7 @@ namespace GameRes.Formats.Will
|
||||
|
||||
private static bool IsScriptFile (string filename)
|
||||
{
|
||||
return filename.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase)
|
||||
|| filename.EndsWith (".wsc", StringComparison.InvariantCultureIgnoreCase);
|
||||
return filename.HasAnyOfExtensions ("scr", "wsc");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user