mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use string.EndsWith() method instead of Path.GetExtension()
This commit is contained in:
@@ -240,8 +240,7 @@ namespace GameRes.Formats
|
||||
int update_count = 0;
|
||||
foreach (var entry in list)
|
||||
{
|
||||
string ext = Path.GetExtension (entry.Name).ToLower();
|
||||
if (entry.Type != "image" && ext != ".scr")
|
||||
if (entry.Type != "image" && !entry.Name.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase))
|
||||
continue;
|
||||
uint id;
|
||||
if (!uint.TryParse (Path.GetFileNameWithoutExtension (entry.Name), NumberStyles.HexNumber,
|
||||
|
||||
Reference in New Issue
Block a user