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:
@@ -148,8 +148,7 @@ namespace GameRes.Formats.Neko
|
||||
{
|
||||
foreach (var entry in dir.Where (e => string.IsNullOrEmpty (e.Type)))
|
||||
{
|
||||
if (entry.Name.EndsWith (".txt", StringComparison.InvariantCultureIgnoreCase) ||
|
||||
entry.Name.EndsWith (".nut", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (entry.Name.HasAnyOfExtensions ("txt", "nut"))
|
||||
{
|
||||
entry.Type = "script";
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user