use string.EndsWith() method instead of Path.GetExtension()

This commit is contained in:
morkt
2015-05-15 18:49:37 +04:00
parent 8640e34c27
commit a2051e6752
6 changed files with 6 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ namespace GameRes.Formats.Ffa
public override Stream OpenEntry (ArcFile arc, Entry entry)
{
var input = arc.File.CreateStream (entry.Offset, entry.Size);
if (entry.Size <= 8 || Path.GetExtension (entry.Name).ToLowerInvariant() != ".so4")
if (entry.Size <= 8 || !entry.Name.EndsWith (".so4", StringComparison.InvariantCultureIgnoreCase))
return input;
using (var header = new ArcView.Reader (input))
{