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:
@@ -81,7 +81,7 @@ namespace GameRes.Formats.Mixwill
|
||||
public override Stream OpenEntry (ArcFile arc, Entry entry)
|
||||
{
|
||||
uint encrypted_size = entry.Size;
|
||||
if (!entry.Name.EndsWith (".txt", StringComparison.InvariantCultureIgnoreCase)
|
||||
if (!entry.Name.HasExtension (".txt")
|
||||
&& encrypted_size > 0x100)
|
||||
encrypted_size = 0x100;
|
||||
var prefix = arc.File.View.ReadBytes (entry.Offset, encrypted_size);
|
||||
|
||||
Reference in New Issue
Block a user