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:
@@ -143,7 +143,7 @@ namespace GameRes.Formats.YuRis
|
||||
input = new ZLibStream (input, CompressionMode.Decompress);
|
||||
uint unpacked_size = null == packed_entry ? entry.Size : packed_entry.UnpackedSize;
|
||||
if (null == ypf || 0 == ypf.ScriptKey || unpacked_size <= 0x20
|
||||
|| !entry.Name.EndsWith (".ybn", StringComparison.InvariantCultureIgnoreCase))
|
||||
|| !entry.Name.HasExtension (".ybn"))
|
||||
return input;
|
||||
using (input)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user