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:
@@ -46,7 +46,7 @@ namespace GameRes.Formats.Nejii
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (file.MaxOffset < 0x30 || !file.Name.EndsWith (".pcd", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (file.MaxOffset < 0x30 || !file.Name.HasExtension (".pcd"))
|
||||
return null;
|
||||
// check if first entry looks like WAVEFORMAT
|
||||
ushort channels = file.View.ReadUInt16 (0x12);
|
||||
|
||||
Reference in New Issue
Block a user