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:
@@ -76,7 +76,7 @@ namespace GameRes.Formats.Fs
|
||||
entry.Size = file.View.ReadUInt32 (cur_offset+0x88);
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
if (Path.GetExtension (name).Equals (".dsf", System.StringComparison.OrdinalIgnoreCase))
|
||||
if (name.EndsWith (".dsf", System.StringComparison.InvariantCultureIgnoreCase))
|
||||
entry.Type = "script";
|
||||
dir.Add (entry);
|
||||
cur_offset += 0x90;
|
||||
|
||||
Reference in New Issue
Block a user