(VFS.IsPathEqualsToFileName): new method.

This commit is contained in:
morkt
2016-12-29 16:19:28 +04:00
parent 06718d88e9
commit 1d7369a2e4
7 changed files with 26 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ namespace GameRes.Formats.Silky
return null;
// rather loose criterion, haven't found anything better yet.
bool is_mp3 = Path.GetFileName (file.Name).Equals ("voice.awf", StringComparison.InvariantCultureIgnoreCase);
bool is_mp3 = VFS.IsPathEqualsToFileName (file.Name, "voice.awf");
var dir = new List<Entry> (count);
for (int i = 0; i < count; ++i)
{