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:
@@ -169,7 +169,7 @@ namespace GameRes.Formats.Musica
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".paz", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".paz"))
|
||||
return null;
|
||||
uint signature = file.View.ReadUInt32 (0);
|
||||
// XXX encryption is queried for every .paz file
|
||||
|
||||
Reference in New Issue
Block a user