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:
@@ -42,7 +42,7 @@ namespace GameRes.Formats.Yatagarasu
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.Name.EndsWith (".pkg", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (!file.Name.HasExtension (".pkg"))
|
||||
return null;
|
||||
uint key = file.View.ReadUInt32 (0x84); // last bytes of the first entry name
|
||||
if (key != file.View.ReadUInt32 (0x10C)) // keys of the first two entries supposed to be the same
|
||||
|
||||
Reference in New Issue
Block a user