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:
@@ -296,8 +296,7 @@ namespace GameRes.Formats.ONScripter
|
||||
var header_entry = new NsaEntry { Name = entry.Name };
|
||||
if (Compression.None != ons_options.CompressionType)
|
||||
{
|
||||
string ext = Path.GetExtension (entry.Name).ToLower();
|
||||
if (".bmp" == ext)
|
||||
if (entry.Name.EndsWith (".bmp", StringComparison.InvariantCultureIgnoreCase))
|
||||
header_entry.CompressionType = ons_options.CompressionType;
|
||||
}
|
||||
index_size += 13;
|
||||
|
||||
Reference in New Issue
Block a user