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:
@@ -82,7 +82,7 @@ namespace GameRes.Formats.Nags
|
||||
public override Stream OpenEntry (ArcFile arc, Entry entry)
|
||||
{
|
||||
var input = arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
if (!entry.Name.EndsWith (".scb", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!entry.Name.HasExtension (".scb"))
|
||||
return input;
|
||||
return new InputCryptoStream (input, new NotTransform());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user