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:
@@ -92,7 +92,7 @@ namespace GameRes.Formats.Ivory
|
||||
{
|
||||
var name = Binary.GetCString (cnam, entry.NameOffset);
|
||||
entry.Name = name;
|
||||
if (name.EndsWith (".px", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (name.HasExtension (".px"))
|
||||
entry.Type = "audio";
|
||||
else
|
||||
entry.Type = FormatCatalog.Instance.GetTypeFromName (name);
|
||||
|
||||
Reference in New Issue
Block a user