mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use string.EndsWith() method instead of Path.GetExtension()
This commit is contained in:
@@ -89,7 +89,7 @@ namespace GameRes.Formats.AZSys
|
||||
public override Stream OpenEntry (ArcFile arc, Entry entry)
|
||||
{
|
||||
if (entry.Size < 20
|
||||
|| ".asb" != Path.GetExtension (entry.Name).ToLowerInvariant()
|
||||
|| !entry.Name.EndsWith (".asb", StringComparison.InvariantCultureIgnoreCase)
|
||||
|| !arc.File.View.AsciiEqual (entry.Offset, "ASB\x1a"))
|
||||
return arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
uint packed = arc.File.View.ReadUInt32 (entry.Offset+4);
|
||||
|
||||
Reference in New Issue
Block a user