From 7f44500c894eee9dab23c3c46fc1ef8e7662aa05 Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Wed, 29 Apr 2009 14:04:23 +0000 Subject: [PATCH] Don't fail to read subtitles from MKV's that are named .mks or .mka, both of those are reported as supported formats in the "open subtitles" dialog box. Originally committed to SVN as r2878. --- aegisub/src/subtitle_format_mkv.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aegisub/src/subtitle_format_mkv.cpp b/aegisub/src/subtitle_format_mkv.cpp index bc0bdff18..04ddad663 100644 --- a/aegisub/src/subtitle_format_mkv.cpp +++ b/aegisub/src/subtitle_format_mkv.cpp @@ -47,7 +47,11 @@ ///////////// // Can read? bool MKVSubtitleFormat::CanReadFile(wxString filename) { - return (filename.Right(4).Lower() == _T(".mkv")); + if (filename.Right(4).Lower() == _T(".mkv") || filename.Right(4).Lower() == _T(".mks") + || filename.Right(4).Lower() == _T(".mka")) + return true; + else + return false; }