Merge pull request #135 from dpavlin/master

added mobi to CREReader
This commit is contained in:
{Qingping,Dave} Hou
2012-04-21 06:12:51 -07:00
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ function FileChooser:readDir()
if file_type == "djvu"
or file_type == "pdf" or file_type == "xps" or file_type == "cbz"
or file_type == "epub" or file_type == "txt" or file_type == "rtf"
or file_type == "htm" or file_type == "html"
or file_type == "htm" or file_type == "html" or file_type == "mobi"
or file_type == "fb2" or file_type == "chm" then
table.insert(self.files, f)
end

View File

@@ -38,7 +38,7 @@ function FileSearcher:readDir()
or file_type == "xps" or file_type == "cbz"
or file_type == "epub" or file_type == "txt"
or file_type == "rtf" or file_type == "htm"
or file_type == "html"
or file_type == "html" or file_type == "mobi"
or file_type == "fb2" or file_type == "chm" then
file_entry = {dir=d, name=f,}
table.insert(self.files, file_entry)

View File

@@ -44,7 +44,7 @@ function openFile(filename)
reader = DJVUReader
elseif file_type == "pdf" or file_type == "xps" or file_type == "cbz" then
reader = PDFReader
elseif file_type == "epub" or file_type == "txt" or file_type == "rtf" or file_type == "htm" or file_type == "html" or file_type == "fb2" or file_type == "chm" then
elseif file_type == "epub" or file_type == "txt" or file_type == "rtf" or file_type == "htm" or file_type == "html" or file_type == "fb2" or file_type == "chm" or file_type == "mobi" then
reader = CREReader
end
if reader then