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:
@@ -237,7 +237,7 @@ namespace GameRes.Formats.Amaterasu
|
||||
int update_count = 0;
|
||||
foreach (var entry in list)
|
||||
{
|
||||
if (entry.Type != "image" && !entry.Name.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (entry.Type != "image" && !entry.Name.HasExtension (".scr"))
|
||||
continue;
|
||||
uint id;
|
||||
if (!uint.TryParse (Path.GetFileNameWithoutExtension (entry.Name), NumberStyles.HexNumber,
|
||||
|
||||
Reference in New Issue
Block a user