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:
@@ -117,7 +117,7 @@ namespace GameRes.Formats.Pvns
|
||||
return base.OpenEntry (arc, entry);
|
||||
var data = arc.File.View.ReadBytes (entry.Offset, entry.Size);
|
||||
Decrypt (data, parc.ArcKey);
|
||||
if (entry.Name.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase)
|
||||
if (entry.Name.HasExtension (".scr")
|
||||
&& Binary.AsciiEqual (data, "PSRA") && data.Length > 20)
|
||||
{
|
||||
data = DecryptScript (data, parc.ScriptKey);
|
||||
|
||||
Reference in New Issue
Block a user