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:
@@ -57,7 +57,7 @@ namespace GameRes.Formats.Riddle
|
||||
string name = file.View.ReadString (index_offset, 0x10);
|
||||
uint size = file.View.ReadUInt32 (index_offset+0x10);
|
||||
var entry = new PackedEntry { Name = name };
|
||||
if (name.EndsWith (".scp", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (name.HasExtension (".scp"))
|
||||
{
|
||||
entry.Type = "script";
|
||||
entry.IsPacked = size > 12 && file.View.AsciiEqual (index_offset+0x14, "CMP1");
|
||||
|
||||
Reference in New Issue
Block a user